summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbnativeinterface.h
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2014-07-07 13:28:21 +0200
committerAndras Becsi <andras.becsi@digia.com>2014-07-07 16:18:24 +0200
commit16baadab11341e671150932fd28cff466a4fc041 (patch)
treecef621459f4c1b59a345da0434a7b376dda363de /src/plugins/platforms/xcb/qxcbnativeinterface.h
parent56ce6ba9792778e7d6fa1194b41e282633ff81c1 (diff)
Add support for querying "glxconfig" from native interface
This makes it possible to retrieve the GLXFBConfig used by Qt to create the GLXContext. QtWebEngine on desktop needs this so that Chromium can use the same config as Qt to eliminate BadMatch errors. Change-Id: If18c0937b5af3e457ddbfda035e5d652230211c6 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbnativeinterface.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbnativeinterface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbnativeinterface.h b/src/plugins/platforms/xcb/qxcbnativeinterface.h
index ff5f358298..01b66a767d 100644
--- a/src/plugins/platforms/xcb/qxcbnativeinterface.h
+++ b/src/plugins/platforms/xcb/qxcbnativeinterface.h
@@ -63,6 +63,7 @@ public:
Connection,
Screen,
EglContext,
+ GLXConfig,
GLXContext,
AppTime,
AppUserTime,
@@ -104,6 +105,7 @@ public:
static void setAppUserTime(QScreen *screen, xcb_timestamp_t time);
static void *eglContextForContext(QOpenGLContext *context);
static void *glxContextForContext(QOpenGLContext *context);
+ static void *glxConfigForContext(QOpenGLContext *context);
Q_INVOKABLE void beep();
Q_INVOKABLE bool systemTrayAvailable(const QScreen *screen) const;