Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit cd47a7caceaab870246964987ae56e1c226ea0c6
- Author: Gareth Stockwell <ext-gareth.stockwell@nokia.com>
- Date: Wed Jan 11 11:59:03 2012 +0000
- Add public API for releasing cached GPU resources on Symbian
- Task-number: ou1cimx1yyy964181
- Reviewed-by: PENDING
- diff --git a/src/gui/painting/qgraphicssystemhelper_symbian.cpp b/src/gui/painting/qgraphicssystemhelper_symbian.cpp
- index eb70247..a2414ef 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 b74144e..b08bba4 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
Add Comment
Please, Sign In to add comment