diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2012-01-24 11:42:55 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-25 03:05:15 (GMT) |
commit | c6618ef6e6d1b6b7ca7b52bfcda0f1489cc79198 (patch) | |
tree | b14b5d2ac834834c5dc28874e8cb18efe66969e0 /src/gui/painting | |
parent | f66f2d2a202b32a703e2719e7eb91ee4d681220c (diff) | |
download | Qt-c6618ef6e6d1b6b7ca7b52bfcda0f1489cc79198.zip Qt-c6618ef6e6d1b6b7ca7b52bfcda0f1489cc79198.tar.gz Qt-c6618ef6e6d1b6b7ca7b52bfcda0f1489cc79198.tar.bz2 |
Add a public API for releasing cached GPU resources on Symbian
Task-number: ou1cimx1yyy964181
Change-Id: I2f24d1d0f988bfe029e24fd29d59e6421301b670
Reviewed-by: Jani Hautakangas <jani.hautakangas@nokia.com>
Reviewed-by: Shane Kearns <ext-shane.2.kearns@nokia.com>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qgraphicssystemhelper_symbian.cpp | 11 | ||||
-rw-r--r-- | src/gui/painting/qgraphicssystemhelper_symbian.h | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/painting/qgraphicssystemhelper_symbian.cpp b/src/gui/painting/qgraphicssystemhelper_symbian.cpp index 491d219cd..d3eac1e 100644 --- a/src/gui/painting/qgraphicssystemhelper_symbian.cpp +++ b/src/gui/painting/qgraphicssystemhelper_symbian.cpp @@ -39,6 +39,9 @@ ** ****************************************************************************/ +#include "qapplication_p.h" +#include "qgraphicssystem_p.h" +#include "qgraphicssystemex_symbian_p.h" #include "qgraphicssystemhelper_symbian.h" #include "qt_s60_p.h" #include "qwidget_p.h" @@ -138,4 +141,12 @@ void QSymbianGraphicsSystemHelper::setReceiveNativePaintEvents(QWidget *widget, widgetPrivate->extraData()->receiveNativePaintEvents = value; } +void QSymbianGraphicsSystemHelper::releaseCachedGpuResources() +{ + QSymbianGraphicsSystemEx *ex = static_cast<QSymbianGraphicsSystemEx *>( + QApplicationPrivate::graphicsSystem()->platformExtension()); + if (ex) + ex->releaseCachedGpuResources(); +} + QT_END_NAMESPACE diff --git a/src/gui/painting/qgraphicssystemhelper_symbian.h b/src/gui/painting/qgraphicssystemhelper_symbian.h index bffa93f..e058680 100644 --- a/src/gui/painting/qgraphicssystemhelper_symbian.h +++ b/src/gui/painting/qgraphicssystemhelper_symbian.h @@ -72,6 +72,8 @@ public: static void setNativePaintMode(QWidget *widget, NativePaintMode mode); static void setNativePaintMode(WId wid, NativePaintMode mode); static void setReceiveNativePaintEvents(QWidget *widget, bool value); + + static void releaseCachedGpuResources(); }; QT_END_NAMESPACE |