summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfswindow.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2013-09-17 14:45:24 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-21 01:25:19 +0200
commit88fb1273315b2bfde42b421ea39624d95850c7eb (patch)
tree0f88d601a133bf787444ba11a2775d3c82bf56b2 /src/plugins/platforms/eglfs/qeglfswindow.cpp
parent73637b7d1a01ca7db5fabe9a6fd5107bafd3c4c6 (diff)
eglfs: Unify the native resource getters
Similarly to how it's done in xcb. And add support for eglwindow since the WId will soon once again cease to be an EGLNativeWindowType. Change-Id: I0e3b86a21179439821550c9423f0e747ccae5897 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfswindow.cpp')
-rw-r--r--src/plugins/platforms/eglfs/qeglfswindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfswindow.cpp b/src/plugins/platforms/eglfs/qeglfswindow.cpp
index 888de058ad..ac2e7e72fb 100644
--- a/src/plugins/platforms/eglfs/qeglfswindow.cpp
+++ b/src/plugins/platforms/eglfs/qeglfswindow.cpp
@@ -238,6 +238,11 @@ QSurfaceFormat QEglFSWindow::format() const
return m_format;
}
+EGLNativeWindowType QEglFSWindow::eglWindow() const
+{
+ return m_window;
+}
+
QEglFSScreen *QEglFSWindow::screen() const
{
return static_cast<QEglFSScreen *>(QPlatformWindow::screen());