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/gui/painting/qgraphicssystem.cpp | |
parent | 0ec06f76484d64676bcd8b981b54593cdb8b539e (diff) |
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/gui/painting/qgraphicssystem.cpp')
-rw-r--r-- | src/gui/painting/qgraphicssystem.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/gui/painting/qgraphicssystem.cpp b/src/gui/painting/qgraphicssystem.cpp index 51120190c0..4b79600124 100644 --- a/src/gui/painting/qgraphicssystem.cpp +++ b/src/gui/painting/qgraphicssystem.cpp @@ -52,6 +52,9 @@ #endif #ifdef Q_OS_SYMBIAN # include <private/qpixmap_s60_p.h> +# include <private/qgraphicssystemex_symbian_p.h> +#else +# include <private/qgraphicssystemex_p.h> #endif QT_BEGIN_NAMESPACE @@ -84,9 +87,18 @@ QPixmapData *QGraphicsSystem::createPixmapData(QPixmapData *origin) return createPixmapData(origin->pixelType()); } -void QGraphicsSystem::releaseCachedResources() +#ifdef Q_OS_SYMBIAN +Q_GLOBAL_STATIC(QSymbianGraphicsSystemEx, symbianPlatformExtension) +#endif + +QGraphicsSystemEx* QGraphicsSystem::platformExtension() { - // Do nothing here +#ifdef Q_OS_SYMBIAN + // this is used on raster graphics systems. HW accelerated + // graphics systems will overwrite this function. + return symbianPlatformExtension(); +#endif + return 0; } QT_END_NAMESPACE |