Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <waylandeglclientbufferintegration_p.h>
Public Member Functions | |
WaylandEglClientBuffer (WaylandEglClientBufferIntegration *integration, wl_resource *bufferResource) | |
~WaylandEglClientBuffer () override | |
QWaylandBufferRef::BufferFormatEgl | bufferFormatEgl () const override |
QSize | size () const override |
QWaylandSurface::Origin | origin () const override |
quintptr | lockNativeBuffer () override |
void | unlockNativeBuffer (quintptr native_buffer) const override |
QOpenGLTexture * | toOpenGlTexture (int plane) override |
void | setCommitted (QRegion &damage) override |
bool | isProtected () override |
Public Member Functions inherited from QtWayland::ClientBuffer | |
ClientBuffer (struct ::wl_resource *bufferResource) | |
virtual | ~ClientBuffer () |
virtual QImage | image () const |
bool | isCommitted () const |
bool | isDestroyed () |
struct::wl_resource * | waylandBufferHandle () const |
bool | isSharedMemory () const |
Friends | |
class | WaylandEglClientBufferIntegration |
class | WaylandEglClientBufferIntegrationPrivate |
Additional Inherited Members | |
Static Public Member Functions inherited from QtWayland::ClientBuffer | |
static bool | hasContent (ClientBuffer *buffer) |
static bool | hasProtectedContent (ClientBuffer *buffer) |
Protected Member Functions inherited from QtWayland::ClientBuffer | |
void | ref () |
void | deref () |
void | sendRelease () |
virtual void | setDestroyed () |
Protected Attributes inherited from QtWayland::ClientBuffer | |
struct::wl_resource * | m_buffer = nullptr |
QRegion | m_damage |
bool | m_textureDirty = false |
Definition at line 44 of file waylandeglclientbufferintegration_p.h.
WaylandEglClientBuffer::WaylandEglClientBuffer | ( | WaylandEglClientBufferIntegration * | integration, |
wl_resource * | bufferResource ) |
Definition at line 500 of file waylandeglclientbufferintegration.cpp.
References WaylandEglClientBufferIntegrationPrivate::get(), and BufferState::size.
|
override |
Definition at line 517 of file waylandeglclientbufferintegration.cpp.
References QMetaObject::Connection(), QOpenGLContext::currentContext(), QObject::disconnect(), BufferState::egl_images, BufferState::egl_stream, WaylandEglClientBufferIntegrationPrivate::get(), i, QtWayland::QWaylandTextureOrphanage::instance(), Q_FUNC_INFO, qCDebug, BufferState::textures, BufferState::texturesAboutToBeDestroyedConnection, BufferState::texturesContext, and BufferState::texturesLock.
|
overridevirtual |
Reimplemented from QtWayland::ClientBuffer.
Definition at line 584 of file waylandeglclientbufferintegration.cpp.
References BufferState::egl_format, and formatFromEglFormat().
|
overridevirtual |
Reimplemented from QtWayland::ClientBuffer.
Definition at line 634 of file waylandeglclientbufferintegration.cpp.
References QtWayland::ClientBufferIntegration::isProtected(), and QtWayland::ClientBuffer::m_buffer.
Referenced by toOpenGlTexture().
|
overridevirtual |
Reimplemented from QtWayland::ClientBuffer.
Definition at line 648 of file waylandeglclientbufferintegration.cpp.
References EGL_NO_STREAM_KHR, BufferState::egl_stream, EGL_WAYLAND_BUFFER_WL, WaylandEglClientBufferIntegrationPrivate::get(), QtWayland::ClientBuffer::image(), and QtWayland::ClientBuffer::m_buffer.
|
overridevirtual |
Implements QtWayland::ClientBuffer.
Definition at line 643 of file waylandeglclientbufferintegration.cpp.
References BufferState::isYInverted, QWaylandSurface::OriginBottomLeft, and QWaylandSurface::OriginTopLeft.
Reimplemented from QtWayland::ClientBuffer.
Definition at line 625 of file waylandeglclientbufferintegration.cpp.
References BufferState::eglMode, WaylandEglClientBufferIntegrationPrivate::get(), BufferState::ModeEGLStream, BufferState::ModeUninitialized, and QtWayland::ClientBuffer::waylandBufferHandle().
|
overridevirtual |
Implements QtWayland::ClientBuffer.
Definition at line 672 of file waylandeglclientbufferintegration.cpp.
References BufferState::size.
|
override |
Definition at line 589 of file waylandeglclientbufferintegration.cpp.
References BufferState::egl_format, BufferState::egl_images, EGL_TEXTURE_EXTERNAL_WL, BufferState::eglMode, WaylandEglClientBufferIntegrationPrivate::get(), GL_TEXTURE_EXTERNAL_OES, GL_TEXTURE_PROTECTED_EXT, QSize::height(), QtWayland::QWaylandTextureOrphanage::instance(), isProtected(), QtWayland::ClientBuffer::m_buffer, QtWayland::ClientBuffer::m_textureDirty, BufferState::ModeEGLStream, openGLFormatFromEglFormat(), BufferState::size, BufferState::textures, and QSize::width().
Reimplemented from QtWayland::ClientBuffer.
Definition at line 661 of file waylandeglclientbufferintegration.cpp.
References WaylandEglClientBufferIntegrationPrivate::get().
|
friend |
Definition at line 60 of file waylandeglclientbufferintegration_p.h.
|
friend |
Definition at line 61 of file waylandeglclientbufferintegration_p.h.