9#include <QtKmsSupport/private/qkmsdevice_p.h>
11#include <QtGui/qpa/qplatformwindow.h>
12#include <QtGui/QScreen>
15#include <xf86drmMode.h>
32 qCDebug(qLcEglfsKmsDebug,
"platformInit: Load Screen Config");
35 qCDebug(qLcEglfsKmsDebug,
"platformInit: Opening DRM device");
38 qFatal(
"Could not open DRM device");
43 qCDebug(qLcEglfsKmsDebug,
"platformDestroy: Closing DRM device");
72 format.setRedBufferSize(8);
73 format.setGreenBufferSize(8);
74 format.setBlueBufferSize(8);
108#if QT_CONFIG(drm_atomic)
122 return (
void *) (
qintptr)
s->output().connector_id;
QKmsScreenConfig * screenConfig() const
virtual QKmsScreenConfig * createScreenConfig()
QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &inputFormat) const override
QKmsScreenConfig * m_screenConfig
void platformInit() override
bool hasCapability(QPlatformIntegration::Capability cap) const override
void screenInit() override
void * nativeResourceForIntegration(const QByteArray &name) override
virtual QKmsDevice * createDevice()=0
void platformDestroy() override
void * nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override
bool supportsPBuffers() const override
bool usesDefaultScreen() override
QKmsDevice * device() const
void waitForVSync(QPlatformSurface *surface) const override
EGLNativeDisplayType platformDisplay() const override
virtual void * nativeDisplay() const =0
virtual void loadConfig()
bool supportsPBuffers() const
The QScreen class is used to query screen properties. \inmodule QtGui.
QPlatformScreen * handle() const
Get the platform screen handle.
Combined button and popup list for selecting options.
#define QByteArrayLiteral(str)
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
GLint GLsizei GLsizei GLenum format