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>.
Loading...
Searching...
No Matches
WaylandEglClientBuffer Class Reference

#include <waylandeglclientbufferintegration_p.h>

+ Inheritance diagram for WaylandEglClientBuffer:
+ Collaboration diagram for WaylandEglClientBuffer:

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
 
QOpenGLTexturetoOpenGlTexture (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
 

Detailed Description

Definition at line 44 of file waylandeglclientbufferintegration_p.h.

Constructor & Destructor Documentation

◆ WaylandEglClientBuffer()

WaylandEglClientBuffer::WaylandEglClientBuffer ( WaylandEglClientBufferIntegration * integration,
wl_resource * bufferResource )

Definition at line 500 of file waylandeglclientbufferintegration.cpp.

References WaylandEglClientBufferIntegrationPrivate::get(), and BufferState::size.

+ Here is the call graph for this function:

◆ ~WaylandEglClientBuffer()

WaylandEglClientBuffer::~WaylandEglClientBuffer ( )
override

Member Function Documentation

◆ bufferFormatEgl()

QWaylandBufferRef::BufferFormatEgl WaylandEglClientBuffer::bufferFormatEgl ( ) const
overridevirtual

Reimplemented from QtWayland::ClientBuffer.

Definition at line 584 of file waylandeglclientbufferintegration.cpp.

References BufferState::egl_format, and formatFromEglFormat().

+ Here is the call graph for this function:

◆ isProtected()

bool WaylandEglClientBuffer::isProtected ( )
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lockNativeBuffer()

quintptr WaylandEglClientBuffer::lockNativeBuffer ( )
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.

+ Here is the call graph for this function:

◆ origin()

QWaylandSurface::Origin WaylandEglClientBuffer::origin ( ) const
overridevirtual

◆ setCommitted()

void WaylandEglClientBuffer::setCommitted ( QRegion & damage)
overridevirtual

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().

+ Here is the call graph for this function:

◆ size()

QSize WaylandEglClientBuffer::size ( ) const
overridevirtual

Implements QtWayland::ClientBuffer.

Definition at line 672 of file waylandeglclientbufferintegration.cpp.

References BufferState::size.

◆ toOpenGlTexture()

◆ unlockNativeBuffer()

void WaylandEglClientBuffer::unlockNativeBuffer ( quintptr native_buffer) const
overridevirtual

Reimplemented from QtWayland::ClientBuffer.

Definition at line 661 of file waylandeglclientbufferintegration.cpp.

References WaylandEglClientBufferIntegrationPrivate::get().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ WaylandEglClientBufferIntegration

friend class WaylandEglClientBufferIntegration
friend

Definition at line 60 of file waylandeglclientbufferintegration_p.h.

◆ WaylandEglClientBufferIntegrationPrivate


The documentation for this class was generated from the following files: