diff options
author | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-05-10 11:08:59 +0300 |
---|---|---|
committer | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-05-10 13:14:19 +0300 |
commit | ae245c770449f3cc8629d9d9836ef9c03486b852 (patch) | |
tree | cfec5a38f9d2a23b0f598225dce86f62ed870b4c /src/opengl/qgraphicssystem_gl_p.h | |
parent | 0ec06f76484d64676bcd8b981b54593cdb8b539e (diff) | |
download | qt4-tools-ae245c770449f3cc8629d9d9836ef9c03486b852.tar.gz |
Introduce platform extension to QGraphicsSystem
Qt on Symbian needs some special capabilities to be able
to work on 32MB GPU. This patch introduces some Symbian
specific functions to QGraphicsSystem
Task-number: QTBUG-17882
Reviewed-by: Laszlo Agocs
Diffstat (limited to 'src/opengl/qgraphicssystem_gl_p.h')
-rw-r--r-- | src/opengl/qgraphicssystem_gl_p.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/opengl/qgraphicssystem_gl_p.h b/src/opengl/qgraphicssystem_gl_p.h index 5829dccea9..5372443468 100644 --- a/src/opengl/qgraphicssystem_gl_p.h +++ b/src/opengl/qgraphicssystem_gl_p.h @@ -55,11 +55,19 @@ #include "private/qgraphicssystem_p.h" +#ifdef Q_OS_SYMBIAN +#include "private/qgraphicssystemex_symbian_p.h" +#endif + #include <QMap> QT_BEGIN_NAMESPACE class Q_OPENGL_EXPORT QGLGraphicsSystem : public QGraphicsSystem +#ifdef Q_OS_SYMBIAN + , public QSymbianGraphicsSystemEx +#endif + { public: QGLGraphicsSystem(bool useX11GL); @@ -67,8 +75,9 @@ public: QPixmapData *createPixmapData(QPixmapData::PixelType type) const; QWindowSurface *createWindowSurface(QWidget *widget) const; -#ifdef QGL_USE_TEXTURE_POOL - void releaseCachedResources(); +#ifdef Q_OS_SYMBIAN + void releaseCachedGpuResources(); + QGraphicsSystemEx* platformExtension(); #endif private: bool m_useX11GL; |