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 <linuxdmabufclientbufferintegration.h>
Public Member Functions | |
LinuxDmabufClientBufferIntegration () | |
~LinuxDmabufClientBufferIntegration () override | |
void | initializeHardware (struct ::wl_display *display) override |
QtWayland::ClientBuffer * | createBufferFor (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) |
QWaylandCompositor * | compositor () const |
virtual ClientBuffer * | createBufferFor (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 | |
QWaylandCompositor * | m_compositor = nullptr |
Definition at line 39 of file linuxdmabufclientbufferintegration.h.
LinuxDmabufClientBufferIntegration::LinuxDmabufClientBufferIntegration | ( | ) |
Definition at line 219 of file linuxdmabufclientbufferintegration.cpp.
References DRM_FORMAT_GR88, YuvPlaneConversion::format, YuvFormatConversion::inputPlanes, and QHash< Key, T >::insert().
|
override |
Definition at line 242 of file linuxdmabufclientbufferintegration.cpp.
References QHash< Key, T >::clear(), Q_ASSERT, and qCWarning.
|
override |
Definition at line 359 of file linuxdmabufclientbufferintegration.cpp.
References QHash< Key, T >::end(), QHash< Key, T >::find(), it, and QHash< Key, T >::value().
void LinuxDmabufClientBufferIntegration::deleteImage | ( | EGLImageKHR | image | ) |
Definition at line 354 of file linuxdmabufclientbufferintegration.cpp.
Referenced by LinuxDmabufWlBuffer::buffer_destroy().
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().
|
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().
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().
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC LinuxDmabufClientBufferIntegration::gl_egl_image_target_texture_2d = nullptr |
Definition at line 50 of file linuxdmabufclientbufferintegration.h.
Referenced by LinuxDmabufClientBuffer::toOpenGlTexture().