diff options
author | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-02-28 20:48:12 (GMT) |
---|---|---|
committer | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-03-01 06:14:16 (GMT) |
commit | 4e464f42d5933dcc8535f978e25eeb7fd8a57284 (patch) | |
tree | ea7c623055e2aa67be15f7f2df9db13fe9ff634d /src/plugins/graphicssystems/openvg | |
parent | ae6bc1d824f5ae24a259be0c68241873cb96739f (diff) | |
download | Qt-4e464f42d5933dcc8535f978e25eeb7fd8a57284.zip Qt-4e464f42d5933dcc8535f978e25eeb7fd8a57284.tar.gz Qt-4e464f42d5933dcc8535f978e25eeb7fd8a57284.tar.bz2 |
Add internal function for releasing cached GPU resources.
Task-number: QTBUG-17849
Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/plugins/graphicssystems/openvg')
-rw-r--r-- | src/plugins/graphicssystems/openvg/qgraphicssystem_vg.cpp | 6 | ||||
-rw-r--r-- | src/plugins/graphicssystems/openvg/qgraphicssystem_vg_p.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/graphicssystems/openvg/qgraphicssystem_vg.cpp b/src/plugins/graphicssystems/openvg/qgraphicssystem_vg.cpp index 0c107b5..1da58e1 100644 --- a/src/plugins/graphicssystems/openvg/qgraphicssystem_vg.cpp +++ b/src/plugins/graphicssystems/openvg/qgraphicssystem_vg.cpp @@ -42,6 +42,7 @@ #include "qgraphicssystem_vg_p.h" #include <QtOpenVG/private/qpixmapdata_vg_p.h> #include <QtOpenVG/private/qwindowsurface_vg_p.h> +#include <QtOpenVG/private/qvgimagepool_p.h> #if defined(Q_OS_SYMBIAN) && !defined(Q_SYMBIAN_SEMITRANSPARENT_BG_SURFACE) #include <QtGui/private/qwidget_p.h> #endif @@ -77,4 +78,9 @@ QWindowSurface *QVGGraphicsSystem::createWindowSurface(QWidget *widget) const return new QVGWindowSurface(widget); } +void QVGGraphicsSystem::releaseCachedResources() +{ + QVGImagePool::instance()->hibernate(); +} + QT_END_NAMESPACE diff --git a/src/plugins/graphicssystems/openvg/qgraphicssystem_vg_p.h b/src/plugins/graphicssystems/openvg/qgraphicssystem_vg_p.h index d1bce28..9c9b3e2 100644 --- a/src/plugins/graphicssystems/openvg/qgraphicssystem_vg_p.h +++ b/src/plugins/graphicssystems/openvg/qgraphicssystem_vg_p.h @@ -64,6 +64,8 @@ public: QPixmapData *createPixmapData(QPixmapData::PixelType type) const; QWindowSurface *createWindowSurface(QWidget *widget) const; + + void releaseCachedResources(); }; QT_END_NAMESPACE |