diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-11-20 06:32:35 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-11-20 06:32:35 (GMT) |
commit | a8c8c2274d2d0a708786adbb357013955f99c0af (patch) | |
tree | baddaea690d7d9eb4f40e9d26ddf84c1dd68975f /src/openvg/qpixmapdata_vg_p.h | |
parent | 55b1f191d2ab97b2c1029f12e2315412e74a1dc2 (diff) | |
download | Qt-a8c8c2274d2d0a708786adbb357013955f99c0af.zip Qt-a8c8c2274d2d0a708786adbb357013955f99c0af.tar.gz Qt-a8c8c2274d2d0a708786adbb357013955f99c0af.tar.bz2 |
Do not recreate the VGImage if the size is unchanged
When a pixmap's contents change in QVGPixmapData, only recreate
the VGImage in the GPU if the size is different than before.
This should help reduce GPU memory fragmentation.
Task-number: QT-2504
Reviewed-by: Sarah Smith
Diffstat (limited to 'src/openvg/qpixmapdata_vg_p.h')
-rw-r--r-- | src/openvg/qpixmapdata_vg_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openvg/qpixmapdata_vg_p.h b/src/openvg/qpixmapdata_vg_p.h index f6fac88..fe19f35 100644 --- a/src/openvg/qpixmapdata_vg_p.h +++ b/src/openvg/qpixmapdata_vg_p.h @@ -109,6 +109,7 @@ protected: #endif protected: + QSize prevSize; VGImage vgImage; VGImage vgImageOpacity; qreal cachedOpacity; |