33 QWaylandBufferRef(
const QWaylandBufferRef &ref);
36 QWaylandBufferRef &operator=(
const QWaylandBufferRef &ref);
38 bool hasBuffer()
const;
39 bool hasContent()
const;
40 bool hasProtectedContent()
const;
41 bool isDestroyed()
const;
42#if QT_WAYLANDCOMPOSITOR_REMOVED_SINCE(6
, 3
)
43 bool operator==(
const QWaylandBufferRef &ref);
44 bool operator!=(
const QWaylandBufferRef &ref);
47 struct wl_resource *wl_buffer()
const;
50 QWaylandSurface::Origin origin()
const;
54 BufferType_SharedMemory,
58 enum BufferFormatEgl {
62 BufferFormatEgl_EXTERNAL_OES,
63 BufferFormatEgl_Y_U_V,
65 BufferFormatEgl_Y_XUXV
68 BufferType bufferType()
const;
69 BufferFormatEgl bufferFormatEgl()
const;
71 bool isSharedMemory()
const;
75 QOpenGLTexture *toOpenGLTexture(
int plane = 0)
const;
78 quintptr lockNativeBuffer();
79 void unlockNativeBuffer(quintptr handle);
82 explicit QWaylandBufferRef(QtWayland::ClientBuffer *buffer);
83 QtWayland::ClientBuffer *buffer()
const;
84 class QWaylandBufferRefPrivate *
const d;
85 friend class QWaylandBufferRefPrivate;
86 friend class QWaylandSurfacePrivate;
87 friend class QWaylandSurfaceTextureProvider;
89 friend Q_WAYLANDCOMPOSITOR_EXPORT
90 bool operator==(
const QWaylandBufferRef &lhs,
const QWaylandBufferRef &rhs)
noexcept;
92 bool operator!=(
const QWaylandBufferRef &lhs,
const QWaylandBufferRef &rhs)
noexcept
93 {
return !(lhs == rhs); }