summaryrefslogtreecommitdiffstats
path: root/src/gui/image
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
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')
-rw-r--r--src/gui/image/image.pri3
-rw-r--r--src/gui/image/qpixmapdata_p.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/image/image.pri b/src/gui/image/image.pri
index d99b1c6..00dccbe 100644
--- a/src/gui/image/image.pri
+++ b/src/gui/image/image.pri
@@ -30,7 +30,8 @@ HEADERS += \
image/qpixmapfilter_p.h \
image/qimagepixmapcleanuphooks_p.h \
image/qvolatileimage_p.h \
- image/qvolatileimagedata_p.h
+ image/qvolatileimagedata_p.h \
+ image/qnativeimagehandleprovider_p.h
SOURCES += \
image/qbitmap.cpp \
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,