summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/directfb/qdirectfbintegration.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2011-11-27 20:42:22 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-02 00:08:32 +0100
commit6534898cc69e22115cf158f71a1e0edd7f13877b (patch)
tree32aa4982f28f47365dc84ff09094e8cd8c6d02b2 /src/plugins/platforms/directfb/qdirectfbintegration.h
parent614bb9c0851eb1fe21ff7a998191d551ceed6a22 (diff)
directfb: Introduce EGL integration for DirectFB
Introduce a new platform called 'directfbegl' that allows platform integration with EGL. Change the QDirectFbIntegration to make it more easy to hook up in the creation process, introduce an EGL integration with custom screen, window and EGL Platform Context. Vendors might need to add custom code to initialize EGL to be used with DirectFB, this can be done in QDirectFbScreenEGL::platformInit. Change-Id: I7bee277ede27c72437cd7c5977fa6ed85e65f538 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/plugins/platforms/directfb/qdirectfbintegration.h')
-rw-r--r--src/plugins/platforms/directfb/qdirectfbintegration.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/platforms/directfb/qdirectfbintegration.h b/src/plugins/platforms/directfb/qdirectfbintegration.h
index 4e8a867f0b..42a085261d 100644
--- a/src/plugins/platforms/directfb/qdirectfbintegration.h
+++ b/src/plugins/platforms/directfb/qdirectfbintegration.h
@@ -60,6 +60,8 @@ public:
QDirectFbIntegration();
~QDirectFbIntegration();
+ void initialize();
+
QPlatformPixmap *createPlatformPixmap(QPlatformPixmap::PixelType type) const;
QPlatformWindow *createPlatformWindow(QWindow *window) const;
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;
@@ -67,7 +69,12 @@ public:
QPlatformFontDatabase *fontDatabase() const;
-private:
+protected:
+ virtual void initializeDirectFB();
+ virtual void initializeScreen();
+ virtual void initializeInput();
+
+protected:
QDirectFBPointer<IDirectFB> m_dfb;
QScopedPointer<QDirectFbScreen> m_primaryScreen;
QScopedPointer<QDirectFbInput> m_input;