diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2013-07-08 11:12:47 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-08 12:55:48 +0200 |
commit | f5841521a43b3e3c3f60198079f253b2680ae0b8 (patch) | |
tree | 668386f3cca3b40969ae3ac83784763b92776129 /src/plugins/platforms/qnx/qqnxwindow.h | |
parent | 167a4447424de02372d3686bbeccde7234efc42b (diff) |
QNX: Enable rendering on different displays using OpenGL
Change-Id: Ife9c090cff732aba42a5cbc04640721e8fdde69d
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxwindow.h')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxwindow.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/plugins/platforms/qnx/qqnxwindow.h b/src/plugins/platforms/qnx/qqnxwindow.h index e30a469be7..4fabccf4cb 100644 --- a/src/plugins/platforms/qnx/qqnxwindow.h +++ b/src/plugins/platforms/qnx/qqnxwindow.h @@ -120,6 +120,13 @@ public: void blitFrom(QQnxWindow *sourceWindow, const QPoint &sourceOffset, const QRegion &targetRegion); void minimize(); +#if !defined(QT_NO_OPENGL) + void createEGLSurface(); + void destroyEGLSurface(); + void swapEGLBuffers(); + EGLSurface getSurface(); +#endif + private: QRect setGeometryHelper(const QRect &rect); void removeFromParent(); @@ -147,9 +154,6 @@ private: QRegion m_previousDirty; QRegion m_scrolled; -#if !defined(QT_NO_OPENGL) - QQnxGLContext *m_platformOpenGLContext; -#endif QQnxScreen *m_screen; QList<QQnxWindow*> m_childWindows; QQnxWindow *m_parentWindow; @@ -164,6 +168,13 @@ private: // EGL surface. All of this has to be done from the thread that is calling // QQnxGLContext::makeCurrent() mutable QMutex m_mutex; + +#if !defined(QT_NO_OPENGL) + QQnxGLContext *m_platformOpenGLContext; + QAtomicInt m_newSurfaceRequested; + EGLSurface m_eglSurface; +#endif + QSize m_requestedBufferSize; }; |