![]() |
Qt 6.x
The Qt SDK
|
#include <linuxdmabufclientbufferintegration.h>
Public Attributes | |
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC | gl_egl_image_target_texture_2d = nullptr |
Additional Inherited Members | |
![]() | |
QWaylandCompositor * | m_compositor = nullptr |
Definition at line 39 of file linuxdmabufclientbufferintegration.h.
LinuxDmabufClientBufferIntegration::LinuxDmabufClientBufferIntegration | ( | ) |
Definition at line 218 of file linuxdmabufclientbufferintegration.cpp.
References DRM_FORMAT_GR88, YuvPlaneConversion::format, YuvPlaneConversion::heightDivisor, YuvFormatConversion::inputPlanes, QHash< Key, T >::insert(), YuvFormatConversion::outputPlanes, YuvFormatConversion::plane, YuvPlaneConversion::planeIndex, and YuvPlaneConversion::widthDivisor.
|
override |
Definition at line 241 of file linuxdmabufclientbufferintegration.cpp.
References QHash< Key, T >::clear(), Q_ASSERT, and qCWarning.
|
override |
Definition at line 421 of file linuxdmabufclientbufferintegration.cpp.
References QHash< Key, T >::end(), QHash< Key, T >::find(), it, and QHash< Key, T >::value().
void LinuxDmabufClientBufferIntegration::deleteGLTextureWhenPossible | ( | QOpenGLTexture * | texture, |
QOpenGLContext * | ctx | ||
) |
Definition at line 354 of file linuxdmabufclientbufferintegration.cpp.
References QOpenGLContext::aboutToBeDestroyed(), QObject::connect(), deleteSpecificOrphanedTexture(), Qt::DirectConnection, Q_ASSERT, and QList< T >::size().
Referenced by LinuxDmabufWlBuffer::buffer_destroy().
void LinuxDmabufClientBufferIntegration::deleteImage | ( | EGLImageKHR | image | ) |
Definition at line 416 of file linuxdmabufclientbufferintegration.cpp.
Referenced by LinuxDmabufWlBuffer::buffer_destroy().
void LinuxDmabufClientBufferIntegration::deleteOrphanedTextures | ( | ) |
Definition at line 367 of file linuxdmabufclientbufferintegration.cpp.
References QList< T >::clear(), con, QOpenGLContext::currentContext(), QObject::disconnect(), QList< T >::isEmpty(), Q_ASSERT, qCDebug, and qDeleteAll().
Referenced by LinuxDmabufClientBuffer::toOpenGlTexture().
void LinuxDmabufClientBufferIntegration::deleteSpecificOrphanedTexture | ( | QOpenGLTexture * | texture | ) |
Definition at line 386 of file linuxdmabufclientbufferintegration.cpp.
References con, QObject::disconnect(), i, QListSpecialMethodsBase< T >::indexOf(), QList< T >::length(), Q_ASSERT, Q_FUNC_INFO, qCDebug, qCWarning, QList< T >::removeAt(), QList< T >::size(), and QList< T >::takeAt().
Referenced by deleteGLTextureWhenPossible().
bool LinuxDmabufClientBufferIntegration::importBuffer | ( | wl_resource * | resource, |
LinuxDmabufWlBuffer * | linuxDmabufBuffer | ||
) |
Definition at line 432 of file linuxdmabufclientbufferintegration.cpp.
References QHash< Key, T >::contains(), LinuxDmabufWlBuffer::drmFormat(), 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 252 of file linuxdmabufclientbufferintegration.cpp.
References QByteArray::isEmpty(), QPlatformNativeInterface::nativeResourceForIntegration(), QGuiApplication::platformNativeInterface(), qCDebug, qCWarning, qgetenv(), QScopedPointer< T, Cleanup >::reset(), LinuxDmabuf::setSupportedModifiers(), and QByteArray::toInt().
void LinuxDmabufClientBufferIntegration::removeBuffer | ( | wl_resource * | resource | ) |
Definition at line 445 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 53 of file linuxdmabufclientbufferintegration.h.
Referenced by LinuxDmabufClientBuffer::toOpenGlTexture().