32 QWaylandBufferRef(
const QWaylandBufferRef &ref);
35 QWaylandBufferRef &operator=(
const QWaylandBufferRef &ref);
37 bool hasBuffer()
const;
38 bool hasContent()
const;
39 bool hasProtectedContent()
const;
40 bool isDestroyed()
const;
41#if QT_WAYLANDCOMPOSITOR_REMOVED_SINCE(6
, 3
)
42 bool operator==(
const QWaylandBufferRef &ref);
43 bool operator!=(
const QWaylandBufferRef &ref);
46 struct wl_resource *wl_buffer()
const;
49 QWaylandSurface::Origin origin()
const;
53 BufferType_SharedMemory,
57 enum BufferFormatEgl {
61 BufferFormatEgl_EXTERNAL_OES,
62 BufferFormatEgl_Y_U_V,
64 BufferFormatEgl_Y_XUXV
67 BufferType bufferType()
const;
68 BufferFormatEgl bufferFormatEgl()
const;
70 bool isSharedMemory()
const;
74 QOpenGLTexture *toOpenGLTexture(
int plane = 0)
const;
77 quintptr lockNativeBuffer();
78 void unlockNativeBuffer(quintptr handle);
81 explicit QWaylandBufferRef(QtWayland::ClientBuffer *buffer);
82 QtWayland::ClientBuffer *buffer()
const;
83 class QWaylandBufferRefPrivate *
const d;
84 friend class QWaylandBufferRefPrivate;
85 friend class QWaylandSurfacePrivate;
86 friend class QWaylandSurfaceTextureProvider;
88 friend Q_WAYLANDCOMPOSITOR_EXPORT
89 bool operator==(
const QWaylandBufferRef &lhs,
const QWaylandBufferRef &rhs)
noexcept;
91 bool operator!=(
const QWaylandBufferRef &lhs,
const QWaylandBufferRef &rhs)
noexcept
92 {
return !(lhs == rhs); }