summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmapcache_p.h
diff options
context:
space:
mode:
authorJani Hautakangas <ext-jani.hautakangas@nokia.com>2010-05-20 09:46:46 (GMT)
committerJani Hautakangas <ext-jani.hautakangas@nokia.com>2010-05-20 09:46:46 (GMT)
commit98972c1b271de1292b4e46484fe689d62a8b8e62 (patch)
tree0949cdc38127261bdd28cee8cb3084052bd8c461 /src/gui/image/qpixmapcache_p.h
parentb4b4cb3248b987dd6c15908f0b46e131dc2b7cde (diff)
downloadQt-98972c1b271de1292b4e46484fe689d62a8b8e62.zip
Qt-98972c1b271de1292b4e46484fe689d62a8b8e62.tar.gz
Qt-98972c1b271de1292b4e46484fe689d62a8b8e62.tar.bz2
QRuntimeGraphicsSystem
QRuntimeGraphicsSystem is a proxy graphics system which can dynamically switch underlying graphics system on runtime. For example, switch from hardware accelerated graphics system to raster graphics system on low GPU memory situation. This feature is currently supported on Symbian platform. Task-number: QT-3276 Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui/image/qpixmapcache_p.h')
-rw-r--r--src/gui/image/qpixmapcache_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/image/qpixmapcache_p.h b/src/gui/image/qpixmapcache_p.h
index 86a1b78..0ed083c 100644
--- a/src/gui/image/qpixmapcache_p.h
+++ b/src/gui/image/qpixmapcache_p.h
@@ -81,8 +81,9 @@ class QPixmapCacheEntry : public QPixmap
public:
QPixmapCacheEntry(const QPixmapCache::Key &key, const QPixmap &pix) : QPixmap(pix), key(key)
{
- if (data && data->classId() == QPixmapData::RasterClass) {
- QRasterPixmapData *d = static_cast<QRasterPixmapData*>(data.data());
+ QPixmapData *pd = pixmapData();
+ if (pd && pd->classId() == QPixmapData::RasterClass) {
+ QRasterPixmapData *d = static_cast<QRasterPixmapData*>(pd);
if (!d->image.isNull() && d->image.d->paintEngine
&& !d->image.d->paintEngine->isActive())
{