summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorJani Hautakangas <jani.hautakangas@nokia.com>2011-02-28 20:48:12 (GMT)
committerJani Hautakangas <jani.hautakangas@nokia.com>2011-03-01 06:14:16 (GMT)
commit4e464f42d5933dcc8535f978e25eeb7fd8a57284 (patch)
treeea7c623055e2aa67be15f7f2df9db13fe9ff634d /src/gui/painting
parentae6bc1d824f5ae24a259be0c68241873cb96739f (diff)
downloadQt-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/gui/painting')
-rw-r--r--src/gui/painting/qgraphicssystem.cpp5
-rw-r--r--src/gui/painting/qgraphicssystem_p.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/painting/qgraphicssystem.cpp b/src/gui/painting/qgraphicssystem.cpp
index 770d947..5112019 100644
--- a/src/gui/painting/qgraphicssystem.cpp
+++ b/src/gui/painting/qgraphicssystem.cpp
@@ -84,4 +84,9 @@ QPixmapData *QGraphicsSystem::createPixmapData(QPixmapData *origin)
return createPixmapData(origin->pixelType());
}
+void QGraphicsSystem::releaseCachedResources()
+{
+ // Do nothing here
+}
+
QT_END_NAMESPACE
diff --git a/src/gui/painting/qgraphicssystem_p.h b/src/gui/painting/qgraphicssystem_p.h
index 76e9a8e..80e8959 100644
--- a/src/gui/painting/qgraphicssystem_p.h
+++ b/src/gui/painting/qgraphicssystem_p.h
@@ -72,6 +72,8 @@ public:
//### Remove this & change qpixmap.cpp & qbitmap.cpp once every platform is gaurenteed
// to have a graphics system.
static QPixmapData *createDefaultPixmapData(QPixmapData::PixelType type);
+
+ virtual void releaseCachedResources();
};
QT_END_NAMESPACE