summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbconnection.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-03-07 16:29:24 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-03-07 16:33:28 (GMT)
commitd9afcf0e84e438f89c1a8c5e26da51b06d8f61d0 (patch)
treec5f1bb28b0195b67a47ccf6ed8d007bc7af06435 /src/plugins/platforms/xcb/qxcbconnection.h
parentcf264556fdea0d434e329e36c07a0ae6fa974f8b (diff)
downloadQt-d9afcf0e84e438f89c1a8c5e26da51b06d8f61d0.zip
Qt-d9afcf0e84e438f89c1a8c5e26da51b06d8f61d0.tar.gz
Qt-d9afcf0e84e438f89c1a8c5e26da51b06d8f61d0.tar.bz2
Lighthouse: Adding Native interface to getting the native eglcontext
in xcbplugin. I also reoredered how eglInitialize was executed, (its not so lazy anymore)
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbconnection.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h
index 8a0f3d7..a7fa7fd 100644
--- a/src/plugins/platforms/xcb/qxcbconnection.h
+++ b/src/plugins/platforms/xcb/qxcbconnection.h
@@ -238,9 +238,14 @@ public:
#ifdef XCB_USE_DRI2
bool hasSupportForDri2() const;
- void *egl_display() const { return m_egl_display; }
QByteArray dri2DeviceName() const { return m_dri2_device_name; }
#endif
+#ifdef XCB_USE_EGL
+ bool hasEgl() const;
+#endif
+#if defined(XCB_USE_EGL) || defined(XCB_USE_DRI2)
+ void *egl_display() const { return m_egl_display; }
+#endif
private slots:
void eventDispatcher();
@@ -272,15 +277,17 @@ private:
uint32_t m_dri2_minor;
bool m_dri2_support_probed;
bool m_has_support_for_dri2;
- void *m_egl_display;
QByteArray m_dri2_device_name;
#endif
-
+#if defined(XCB_USE_EGL) || defined(XCB_USE_DRI2)
+ void *m_egl_display;
+ bool m_has_egl;
+#endif
};
#define DISPLAY_FROM_XCB(object) ((Display *)(object->connection()->xlib_display()))
-#ifdef XCB_USE_DRI2
+#if defined(XCB_USE_DRI2) || defined(XCB_USE_EGL)
#define EGL_DISPLAY_FROM_XCB(object) ((EGLDisplay)(object->connection()->egl_display()))
#endif //endifXCB_USE_DRI2