diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2011-11-27 20:42:22 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-02 00:08:32 +0100 |
commit | 6534898cc69e22115cf158f71a1e0edd7f13877b (patch) | |
tree | 32aa4982f28f47365dc84ff09094e8cd8c6d02b2 /src/plugins/platforms/directfb/qdirectfbwindow.cpp | |
parent | 614bb9c0851eb1fe21ff7a998191d551ceed6a22 (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/qdirectfbwindow.cpp')
-rw-r--r-- | src/plugins/platforms/directfb/qdirectfbwindow.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/plugins/platforms/directfb/qdirectfbwindow.cpp b/src/plugins/platforms/directfb/qdirectfbwindow.cpp index 55fce90252..4648ed42f0 100644 --- a/src/plugins/platforms/directfb/qdirectfbwindow.cpp +++ b/src/plugins/platforms/directfb/qdirectfbwindow.cpp @@ -202,4 +202,15 @@ IDirectFBWindow *QDirectFbWindow::dfbWindow() const return m_dfbWindow.data(); } -QT_END_NAMESPACE +IDirectFBSurface *QDirectFbWindow::dfbSurface() +{ + if (!m_dfbSurface) { + DFBResult res = m_dfbWindow->GetSurface(m_dfbWindow.data(), m_dfbSurface.outPtr()); + if (res != DFB_OK) + DirectFBError(QDFB_PRETTY, res); + } + + return m_dfbSurface.data(); +} + +QT_END_NAMESPACE
\ No newline at end of file |