8#include <QtGui/private/qeglplatformcontext_p.h>
9#include <QtGui/private/qeglpbuffer_p.h>
17 QXcbEglContext(
const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share, EGLDisplay display)
24 QEGLPlatformContext::swapBuffers(surface);
25 if (surface->surface()->surfaceClass() == QSurface::Window) {
26 QXcbWindow *platformWindow =
static_cast<QXcbWindow *>(surface);
30 if (platformWindow->needsSync())
31 platformWindow->postSyncWindowRequest();
37 return QEGLPlatformContext::makeCurrent(surface);
42 QEGLPlatformContext::doneCurrent();
47 if (surface->surface()->surfaceClass() == QSurface::Window)
50 return static_cast<QEGLPbuffer *>(surface)->pbuffer();
EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override
QXcbEglContext(const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share, EGLDisplay display)
bool makeCurrent(QPlatformSurface *surface) override
void swapBuffers(QPlatformSurface *surface) override
Reimplement in subclass to native swap buffers calls.
void doneCurrent() override
QOpenGLContext * createOpenGLContext(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext) const override
bool supportsThreadedOpenGL() const override
QPlatformOffscreenSurface * createPlatformOffscreenSurface(QOffscreenSurface *surface) const override
QXcbWindow * createWindow(QWindow *window) const override
bool usingPlatformDisplay() const
bool initialize(QXcbConnection *connection) override
xcb_visualid_t getCompatibleVisualId(xcb_screen_t *screen, EGLConfig config) const
EGLDisplay eglDisplay() const
QPlatformOpenGLContext * createPlatformOpenGLContext(QOpenGLContext *context) const override
QXcbEglWindow(QWindow *window, QXcbEglIntegration *glIntegration)
void resolveFormat(const QSurfaceFormat &format) override
EGLSurface eglSurface() const
const xcb_visualtype_t * createVisual() override
QXcbEglIntegration * glIntegration() const
int antialiasingEnabled() const
xcb_colormap_t colormapForVisual(xcb_visualid_t) const
QFontEngine::SubpixelAntialiasingType subpixelType() const
QFontEngine::HintStyle hintStyle() const
bool compositingActive() const
void addScreen(QPlatformScreen *s)
const xcb_visualtype_t * visualForId(xcb_visualid_t) const
xcb_window_t root() const
QXcbVirtualDesktop(QXcbConnection *connection, xcb_screen_t *screen, int number)
void handleScreenChange(xcb_randr_screen_change_notify_event_t *change_event)
handle the XCB screen change event and update properties
const xcb_visualtype_t * visualForFormat(const QSurfaceFormat &format) const
QSize physicalSize() const
quint8 depthOfVisual(xcb_visualid_t) const
QXcbXSettings * xSettings() const
QList< QPlatformScreen * > screens() const
void setScreens(QList< QPlatformScreen * > &&sl)
void subscribeToXFixesSelectionNotify()
void setPrimaryScreen(QPlatformScreen *s)
void removeScreen(QPlatformScreen *s)
QRect availableGeometry(const QRect &screenGeometry) const
void handleXFixesSelectionNotify(xcb_xfixes_selection_notify_event_t *notify_event)
QXcbScreen * screenAt(const QPoint &pos) const
QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &format) const
QString windowManagerName() const
xcb_screen_t * screen() const
std::optional< VisualInfo > getVisualInfo(xcb_screen_t *screen, std::optional< xcb_visualid_t > requestedVisualId, std::optional< uint8_t > requestedDepth=std::nullopt)
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
xcb_visualtype_t visualType