summaryrefslogtreecommitdiffstats
path: root/src/openvg/qpixmapdata_vg_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-03-24 14:29:26 (GMT)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-03-24 14:29:26 (GMT)
commit83d33a9f64d1472926c61e472655182e539a8e10 (patch)
tree66895fbcb4b8defc2ea526b13419606485fa1d85 /src/openvg/qpixmapdata_vg_p.h
parente087227d6bb2c8f66f518f57aa18452d05658d72 (diff)
downloadQt-83d33a9f64d1472926c61e472655182e539a8e10.zip
Qt-83d33a9f64d1472926c61e472655182e539a8e10.tar.gz
Qt-83d33a9f64d1472926c61e472655182e539a8e10.tar.bz2
Fix an issue with VGImage readback in openvg.
The special case of creating a pixmap from RSgImage via a native handle provider needs extra attention when hibernating: In this case the hibernating happens as usual, however doing a readback would produce unwanted results and must be avoided. Reviewed-by: Jani Hautakangas
Diffstat (limited to 'src/openvg/qpixmapdata_vg_p.h')
-rw-r--r--src/openvg/qpixmapdata_vg_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvg/qpixmapdata_vg_p.h b/src/openvg/qpixmapdata_vg_p.h
index 15ff889..c284596 100644
--- a/src/openvg/qpixmapdata_vg_p.h
+++ b/src/openvg/qpixmapdata_vg_p.h
@@ -188,7 +188,7 @@ protected:
QString nativeImageType;
#endif
- void forceToImage();
+ void forceToImage(bool allowReadback = true);
QImage::Format sourceFormat() const;
QImage::Format idealFormat(QImage *image, Qt::ImageConversionFlags flags) const;
void updateSerial();