summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfswindow.h
diff options
context:
space:
mode:
authorGirish Ramakrishnan <girish.1.ramakrishnan@nokia.com>2012-06-06 13:57:09 -0700
committerQt by Nokia <qt-info@nokia.com>2012-06-12 04:29:49 +0200
commite9df01d3db83ec4ba64c99c92495e6dd0e201420 (patch)
tree11ed60d01ae457b676d9be854762c58b9b178da3 /src/plugins/platforms/eglfs/qeglfswindow.h
parent040f30decd24c32f71f14eeaed5fdcd58b2dce3d (diff)
eglfs refactor: move window creation into qeglfswindow
This potentially allows the creation of multiple QWindows. The platform context is now in a seperate file and the integration provides a new instance of the context allowing creation of multiple contexts. Change-Id: If2b6fa29b573d87c0a4cd0a8eff1f044bd1ff9b8 Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfswindow.h')
-rw-r--r--src/plugins/platforms/eglfs/qeglfswindow.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfswindow.h b/src/plugins/platforms/eglfs/qeglfswindow.h
index 3e7a68953a..f8c594b2a6 100644
--- a/src/plugins/platforms/eglfs/qeglfswindow.h
+++ b/src/plugins/platforms/eglfs/qeglfswindow.h
@@ -46,7 +46,6 @@
#include "qeglfsscreen.h"
#include <qpa/qplatformwindow.h>
-#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
@@ -54,13 +53,22 @@ class QEglFSWindow : public QPlatformWindow
{
public:
QEglFSWindow(QWindow *w);
+ ~QEglFSWindow();
void setGeometry(const QRect &);
Qt::WindowState setWindowState(Qt::WindowState state);
WId winId() const;
+ EGLSurface surface() const { return m_surface; }
+ QSurfaceFormat format() const;
+
+ void create();
+ void destroy();
+
private:
WId m_winid;
+ EGLSurface m_surface;
+ EGLNativeWindowType m_window;
};
QT_END_NAMESPACE
#endif // QEGLFSWINDOW_H