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
LinuxDmabufClientBufferIntegration Class Reference

#include <linuxdmabufclientbufferintegration.h>

+ Inheritance diagram for LinuxDmabufClientBufferIntegration:
+ Collaboration diagram for LinuxDmabufClientBufferIntegration:

Public Member Functions

 LinuxDmabufClientBufferIntegration ()
 
 ~LinuxDmabufClientBufferIntegration () override
 
void initializeHardware (struct ::wl_display *display) override
 
QtWayland::ClientBuffercreateBufferFor (wl_resource *resource) override
 
bool importBuffer (wl_resource *resource, LinuxDmabufWlBuffer *linuxDmabufBuffer)
 
void removeBuffer (wl_resource *resource)
 
void deleteImage (EGLImageKHR image)
 
- Public Member Functions inherited from QtWayland::ClientBufferIntegration
 ClientBufferIntegration ()
 
virtual ~ClientBufferIntegration ()
 
void setCompositor (QWaylandCompositor *compositor)
 
QWaylandCompositorcompositor () const
 
virtual ClientBuffercreateBufferFor (struct ::wl_resource *buffer)=0
 
virtual bool isProtected (struct ::wl_resource *buffer)
 

Public Attributes

PFNGLEGLIMAGETARGETTEXTURE2DOESPROC gl_egl_image_target_texture_2d = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from QtWayland::ClientBufferIntegration
QWaylandCompositorm_compositor = nullptr
 

Detailed Description

Definition at line 39 of file linuxdmabufclientbufferintegration.h.

Constructor & Destructor Documentation

◆ LinuxDmabufClientBufferIntegration()

LinuxDmabufClientBufferIntegration::LinuxDmabufClientBufferIntegration ( )

Definition at line 219 of file linuxdmabufclientbufferintegration.cpp.

References DRM_FORMAT_GR88, YuvPlaneConversion::format, YuvFormatConversion::inputPlanes, and QHash< Key, T >::insert().

+ Here is the call graph for this function:

◆ ~LinuxDmabufClientBufferIntegration()

LinuxDmabufClientBufferIntegration::~LinuxDmabufClientBufferIntegration ( )
override

Definition at line 242 of file linuxdmabufclientbufferintegration.cpp.

References QHash< Key, T >::clear(), Q_ASSERT, and qCWarning.

+ Here is the call graph for this function:

Member Function Documentation

◆ createBufferFor()

QtWayland::ClientBuffer * LinuxDmabufClientBufferIntegration::createBufferFor ( wl_resource * resource)
override

Definition at line 359 of file linuxdmabufclientbufferintegration.cpp.

References QHash< Key, T >::end(), QHash< Key, T >::find(), it, and QHash< Key, T >::value().

+ Here is the call graph for this function:

◆ deleteImage()

void LinuxDmabufClientBufferIntegration::deleteImage ( EGLImageKHR image)

Definition at line 354 of file linuxdmabufclientbufferintegration.cpp.

Referenced by LinuxDmabufWlBuffer::buffer_destroy().

+ Here is the caller graph for this function:

◆ importBuffer()

bool LinuxDmabufClientBufferIntegration::importBuffer ( wl_resource * resource,
LinuxDmabufWlBuffer * linuxDmabufBuffer )

Definition at line 370 of file linuxdmabufclientbufferintegration.cpp.

References QHash< Key, T >::contains(), and qCWarning.

Referenced by LinuxDmabufParams::zwp_linux_buffer_params_v1_create(), and LinuxDmabufParams::zwp_linux_buffer_params_v1_create_immed().

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

◆ initializeHardware()

void LinuxDmabufClientBufferIntegration::initializeHardware ( struct ::wl_display * display)
overridevirtual

Implements QtWayland::ClientBufferIntegration.

Definition at line 253 of file linuxdmabufclientbufferintegration.cpp.

References QPlatformNativeInterface::nativeResourceForIntegration(), QGuiApplication::platformNativeInterface(), qCDebug, qCWarning, qgetenv(), QScopedPointer< T, Cleanup >::reset(), and LinuxDmabuf::setSupportedModifiers().

+ Here is the call graph for this function:

◆ removeBuffer()

void LinuxDmabufClientBufferIntegration::removeBuffer ( wl_resource * resource)

Definition at line 383 of file linuxdmabufclientbufferintegration.cpp.

References QHash< Key, T >::remove().

Referenced by LinuxDmabufWlBuffer::~LinuxDmabufWlBuffer(), and LinuxDmabufClientBuffer::setDestroyed().

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

Member Data Documentation

◆ gl_egl_image_target_texture_2d

PFNGLEGLIMAGETARGETTEXTURE2DOESPROC LinuxDmabufClientBufferIntegration::gl_egl_image_target_texture_2d = nullptr

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