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

Public Member Functions

 WaylandEglStreamClientBufferIntegrationPrivate ()=default
 
bool ensureContext ()
 
bool initEglStream (WaylandEglStreamClientBuffer *buffer, struct ::wl_resource *bufferHandle)
 
void setupBufferAndCleanup (BufferState *bs, QOpenGLTexture *texture, int plane)
 
void handleEglstreamTexture (WaylandEglStreamClientBuffer *buffer)
 

Static Public Member Functions

static WaylandEglStreamClientBufferIntegrationPrivateget (WaylandEglStreamClientBufferIntegration *integration)
 

Public Attributes

EGLDisplay egl_display = EGL_NO_DISPLAY
 
bool display_bound = false
 
::wl_display * wlDisplay = nullptr
 
QOffscreenSurfaceoffscreenSurface = nullptr
 
QOpenGLContextlocalContext = nullptr
 
WaylandEglStreamControllereglStreamController = nullptr
 
PFNEGLBINDWAYLANDDISPLAYWL egl_bind_wayland_display = nullptr
 
PFNEGLUNBINDWAYLANDDISPLAYWL egl_unbind_wayland_display = nullptr
 
PFNEGLQUERYWAYLANDBUFFERWL_compat egl_query_wayland_buffer = nullptr
 
QEGLStreamConveniencefuncs = nullptr
 

Static Public Attributes

static bool shuttingDown = false
 

Detailed Description

Definition at line 125 of file waylandeglstreamintegration.cpp.

Constructor & Destructor Documentation

◆ WaylandEglStreamClientBufferIntegrationPrivate()

WaylandEglStreamClientBufferIntegrationPrivate::WaylandEglStreamClientBufferIntegrationPrivate ( )
default

Member Function Documentation

◆ ensureContext()

bool WaylandEglStreamClientBufferIntegrationPrivate::ensureContext ( )

Definition at line 157 of file waylandeglstreamintegration.cpp.

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

Referenced by handleEglstreamTexture(), and initEglStream().

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

◆ get()

static WaylandEglStreamClientBufferIntegrationPrivate * WaylandEglStreamClientBufferIntegrationPrivate::get ( WaylandEglStreamClientBufferIntegration * integration)
inlinestatic

Definition at line 148 of file waylandeglstreamintegration.cpp.

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

Referenced by WaylandEglStreamClientBuffer::~WaylandEglStreamClientBuffer(), and WaylandEglStreamClientBuffer::setCommitted().

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

◆ handleEglstreamTexture()

void WaylandEglStreamClientBufferIntegrationPrivate::handleEglstreamTexture ( WaylandEglStreamClientBuffer * buffer)

Definition at line 271 of file waylandeglstreamintegration.cpp.

References QOpenGLTexture::bind(), QOpenGLContext::doneCurrent(), egl_display, EGL_STREAM_STATE_KHR, EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR, ensureContext(), funcs, localContext, Q_FUNC_INFO, QEGLStreamConvenience::query_stream, qWarning, state, QEGLStreamConvenience::stream_consumer_acquire, and BufferState::textures.

+ Here is the call graph for this function:

◆ initEglStream()

◆ setupBufferAndCleanup()

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

Definition at line 180 of file waylandeglstreamintegration.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 WaylandEglStreamClientBufferIntegrationPrivate::display_bound = false

Definition at line 136 of file waylandeglstreamintegration.cpp.

◆ egl_bind_wayland_display

PFNEGLBINDWAYLANDDISPLAYWL WaylandEglStreamClientBufferIntegrationPrivate::egl_bind_wayland_display = nullptr

Definition at line 143 of file waylandeglstreamintegration.cpp.

◆ egl_display

EGLDisplay WaylandEglStreamClientBufferIntegrationPrivate::egl_display = EGL_NO_DISPLAY

Definition at line 135 of file waylandeglstreamintegration.cpp.

Referenced by handleEglstreamTexture(), and initEglStream().

◆ egl_query_wayland_buffer

PFNEGLQUERYWAYLANDBUFFERWL_compat WaylandEglStreamClientBufferIntegrationPrivate::egl_query_wayland_buffer = nullptr

Definition at line 145 of file waylandeglstreamintegration.cpp.

Referenced by initEglStream().

◆ egl_unbind_wayland_display

PFNEGLUNBINDWAYLANDDISPLAYWL WaylandEglStreamClientBufferIntegrationPrivate::egl_unbind_wayland_display = nullptr

Definition at line 144 of file waylandeglstreamintegration.cpp.

◆ eglStreamController

WaylandEglStreamController* WaylandEglStreamClientBufferIntegrationPrivate::eglStreamController = nullptr

Definition at line 141 of file waylandeglstreamintegration.cpp.

◆ funcs

QEGLStreamConvenience* WaylandEglStreamClientBufferIntegrationPrivate::funcs = nullptr

Definition at line 147 of file waylandeglstreamintegration.cpp.

Referenced by handleEglstreamTexture(), and initEglStream().

◆ localContext

QOpenGLContext* WaylandEglStreamClientBufferIntegrationPrivate::localContext = nullptr

◆ offscreenSurface

QOffscreenSurface* WaylandEglStreamClientBufferIntegrationPrivate::offscreenSurface = nullptr

Definition at line 138 of file waylandeglstreamintegration.cpp.

Referenced by ensureContext().

◆ shuttingDown

bool WaylandEglStreamClientBufferIntegrationPrivate::shuttingDown = false
static

◆ wlDisplay

::wl_display* WaylandEglStreamClientBufferIntegrationPrivate::wlDisplay = nullptr

Definition at line 137 of file waylandeglstreamintegration.cpp.


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