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
WaylandEglClientBufferIntegrationPrivate Class Reference
+ Collaboration diagram for WaylandEglClientBufferIntegrationPrivate:

Public Member Functions

 WaylandEglClientBufferIntegrationPrivate ()
 
void initBuffer (WaylandEglClientBuffer *buffer)
 
void initEglTexture (WaylandEglClientBuffer *buffer, EGLint format)
 
bool ensureContext ()
 
bool initEglStream (WaylandEglClientBuffer *buffer, struct ::wl_resource *bufferHandle)
 
void setupBufferAndCleanup (BufferState *bs, QOpenGLTexture *texture, int plane)
 
void handleEglstreamTexture (WaylandEglClientBuffer *buffer, wl_resource *bufferHandle)
 
void registerBuffer (struct ::wl_resource *buffer, BufferState state)
 

Static Public Member Functions

static WaylandEglClientBufferIntegrationPrivateget (WaylandEglClientBufferIntegration *integration)
 

Public Attributes

EGLDisplay egl_display = EGL_NO_DISPLAY
 
bool display_bound = false
 
::wl_display * wlDisplay = nullptr
 
QOffscreenSurfaceoffscreenSurface = nullptr
 
QOpenGLContextlocalContext = nullptr
 
PFNEGLBINDWAYLANDDISPLAYWL egl_bind_wayland_display = nullptr
 
PFNEGLUNBINDWAYLANDDISPLAYWL egl_unbind_wayland_display = nullptr
 
PFNEGLQUERYWAYLANDBUFFERWL_compat egl_query_wayland_buffer = nullptr
 
PFNEGLCREATEIMAGEKHRPROC egl_create_image = nullptr
 
PFNEGLDESTROYIMAGEKHRPROC egl_destroy_image = nullptr
 
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC gl_egl_image_target_texture_2d = nullptr
 
QEGLStreamConveniencefuncs = nullptr
 

Static Public Attributes

static bool shuttingDown = false
 

Detailed Description

Definition at line 142 of file waylandeglclientbufferintegration.cpp.

Constructor & Destructor Documentation

◆ WaylandEglClientBufferIntegrationPrivate()

WaylandEglClientBufferIntegrationPrivate::WaylandEglClientBufferIntegrationPrivate ( )

Definition at line 180 of file waylandeglclientbufferintegration.cpp.

Member Function Documentation

◆ ensureContext()

bool WaylandEglClientBufferIntegrationPrivate::ensureContext ( )

Definition at line 266 of file waylandeglclientbufferintegration.cpp.

References QOffscreenSurface::create(), QOpenGLContext::create(), QOpenGLContext::currentContext(), QOpenGLContext::format(), QOpenGLContext::globalShareContext(), localContext, QOpenGLContext::makeCurrent(), offscreenSurface, QOffscreenSurface::setFormat(), and QOpenGLContext::setShareContext().

Referenced by handleEglstreamTexture().

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

◆ get()

static WaylandEglClientBufferIntegrationPrivate * WaylandEglClientBufferIntegrationPrivate::get ( WaylandEglClientBufferIntegration * integration)
inlinestatic

Definition at line 171 of file waylandeglclientbufferintegration.cpp.

References QScopedPointer< T, Cleanup >::data(), nullptr, and shuttingDown.

Referenced by WaylandEglClientBuffer::WaylandEglClientBuffer(), WaylandEglClientBuffer::~WaylandEglClientBuffer(), WaylandEglClientBuffer::lockNativeBuffer(), WaylandEglClientBuffer::setCommitted(), WaylandEglClientBuffer::toOpenGlTexture(), and WaylandEglClientBuffer::unlockNativeBuffer().

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

◆ handleEglstreamTexture()

void WaylandEglClientBufferIntegrationPrivate::handleEglstreamTexture ( WaylandEglClientBuffer * buffer,
wl_resource * bufferHandle )

◆ initBuffer()

void WaylandEglClientBufferIntegrationPrivate::initBuffer ( WaylandEglClientBuffer * buffer)

Definition at line 184 of file waylandeglclientbufferintegration.cpp.

References egl_display, egl_query_wayland_buffer, and initEglTexture().

+ Here is the call graph for this function:

◆ initEglStream()

bool WaylandEglClientBufferIntegrationPrivate::initEglStream ( WaylandEglClientBuffer * buffer,
struct ::wl_resource * bufferHandle )

◆ initEglTexture()

void WaylandEglClientBufferIntegrationPrivate::initEglTexture ( WaylandEglClientBuffer * buffer,
EGLint format )

Definition at line 192 of file waylandeglclientbufferintegration.cpp.

References egl_create_image, egl_display, BufferState::egl_format, egl_query_wayland_buffer, EGL_TEXTURE_EXTERNAL_WL, EGL_TEXTURE_RGB, EGL_TEXTURE_RGBA, EGL_TEXTURE_Y_U_V_WL, EGL_TEXTURE_Y_UV_WL, EGL_TEXTURE_Y_XUXV_WL, EGL_WAYLAND_BUFFER_WL, EGL_WAYLAND_PLANE_WL, EGL_WAYLAND_Y_INVERTED_WL, EGLBoolean(), gl_egl_image_target_texture_2d, i, BufferState::ModeEGLImage, qCWarning, ret, and state.

Referenced by initBuffer().

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

◆ registerBuffer()

void WaylandEglClientBufferIntegrationPrivate::registerBuffer ( struct ::wl_resource * buffer,
BufferState state )

◆ setupBufferAndCleanup()

void WaylandEglClientBufferIntegrationPrivate::setupBufferAndCleanup ( BufferState * bs,
QOpenGLTexture * texture,
int plane )

Definition at line 289 of file waylandeglclientbufferintegration.cpp.

References QOpenGLContext::aboutToBeDestroyed(), QObject::connect(), QOpenGLContext::currentContext(), Qt::DirectConnection, Q_ASSERT, Q_FUNC_INFO, and qCDebug.

Referenced by initEglStream().

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

Member Data Documentation

◆ display_bound

bool WaylandEglClientBufferIntegrationPrivate::display_bound = false

Definition at line 156 of file waylandeglclientbufferintegration.cpp.

◆ egl_bind_wayland_display

PFNEGLBINDWAYLANDDISPLAYWL WaylandEglClientBufferIntegrationPrivate::egl_bind_wayland_display = nullptr

Definition at line 161 of file waylandeglclientbufferintegration.cpp.

◆ egl_create_image

PFNEGLCREATEIMAGEKHRPROC WaylandEglClientBufferIntegrationPrivate::egl_create_image = nullptr

Definition at line 165 of file waylandeglclientbufferintegration.cpp.

Referenced by initEglTexture().

◆ egl_destroy_image

PFNEGLDESTROYIMAGEKHRPROC WaylandEglClientBufferIntegrationPrivate::egl_destroy_image = nullptr

Definition at line 166 of file waylandeglclientbufferintegration.cpp.

◆ egl_display

EGLDisplay WaylandEglClientBufferIntegrationPrivate::egl_display = EGL_NO_DISPLAY

◆ egl_query_wayland_buffer

PFNEGLQUERYWAYLANDBUFFERWL_compat WaylandEglClientBufferIntegrationPrivate::egl_query_wayland_buffer = nullptr

◆ egl_unbind_wayland_display

PFNEGLUNBINDWAYLANDDISPLAYWL WaylandEglClientBufferIntegrationPrivate::egl_unbind_wayland_display = nullptr

Definition at line 162 of file waylandeglclientbufferintegration.cpp.

◆ funcs

QEGLStreamConvenience* WaylandEglClientBufferIntegrationPrivate::funcs = nullptr

Definition at line 170 of file waylandeglclientbufferintegration.cpp.

Referenced by handleEglstreamTexture(), and initEglStream().

◆ gl_egl_image_target_texture_2d

PFNGLEGLIMAGETARGETTEXTURE2DOESPROC WaylandEglClientBufferIntegrationPrivate::gl_egl_image_target_texture_2d = nullptr

Definition at line 168 of file waylandeglclientbufferintegration.cpp.

Referenced by initEglTexture().

◆ localContext

QOpenGLContext* WaylandEglClientBufferIntegrationPrivate::localContext = nullptr

Definition at line 159 of file waylandeglclientbufferintegration.cpp.

Referenced by ensureContext(), and handleEglstreamTexture().

◆ offscreenSurface

QOffscreenSurface* WaylandEglClientBufferIntegrationPrivate::offscreenSurface = nullptr

Definition at line 158 of file waylandeglclientbufferintegration.cpp.

Referenced by ensureContext().

◆ shuttingDown

bool WaylandEglClientBufferIntegrationPrivate::shuttingDown = false
static

◆ wlDisplay

::wl_display* WaylandEglClientBufferIntegrationPrivate::wlDisplay = nullptr

Definition at line 157 of file waylandeglclientbufferintegration.cpp.


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