summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmapdata_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-03-08 14:59:31 (GMT)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-03-08 14:59:31 (GMT)
commita870c5e10fe83b6b8df254ec760ac50020738aaa (patch)
tree9db282a0027e5ccf7e79049b6fab1a6faf4c2e64 /src/gui/image/qpixmapdata_p.h
parentcb7ce0b2cb0f47e7ef51e7c7f034dda39cc410ad (diff)
downloadQt-a870c5e10fe83b6b8df254ec760ac50020738aaa.zip
Qt-a870c5e10fe83b6b8df254ec760ac50020738aaa.tar.gz
Qt-a870c5e10fe83b6b8df254ec760ac50020738aaa.tar.bz2
Added native image handle provider support in pixmaps on openvg.
QNativeImageHandleProvider is a thin interface consisting of get() and release() functions. Pixmaps constructed with such a provider will call these functions to acquire and release a native handle, e.g. a CFbsBitmap or RSgImage pointer in case of Symbian. The behavior is largely similar to constructing pixmaps via fromSymbianCFbsBitmap or fromSymbianRSgImage, with the exception of pixmap hibernation: release() (and subsequently get()) is guaranteed to be called also in case of hibernation, allowing more fine-grained tracking of the usage and lifetime of image data. Task-number: QT-4632 Reviewed-by: Jani Hautakangas
Diffstat (limited to 'src/gui/image/qpixmapdata_p.h')
-rw-r--r--src/gui/image/qpixmapdata_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/image/qpixmapdata_p.h b/src/gui/image/qpixmapdata_p.h
index aa24a0e..0d0d417 100644
--- a/src/gui/image/qpixmapdata_p.h
+++ b/src/gui/image/qpixmapdata_p.h
@@ -72,7 +72,8 @@ public:
enum NativeType {
FbsBitmap,
SgImage,
- VolatileImage
+ VolatileImage,
+ NativeImageHandleProvider
};
#endif
enum ClassId { RasterClass, X11Class, MacClass, DirectFBClass,