diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-05-05 14:37:53 -0700 |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-05-05 15:13:28 -0700 |
commit | 8ee920d09ad139aedb14eaacc3f9c198d43e4351 (patch) | |
tree | 6b04d442cb98fbb42247a112b3ae357365fb03c2 /src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h | |
parent | f06d186c3b9b053132d8107f843317067238083f (diff) | |
download | qt4-tools-8ee920d09ad139aedb14eaacc3f9c198d43e4351.tar.gz |
Refactored image caching
Make image caching a lot cleaner and more sensible.
By default we do not cache images since creating a preallocated surface
is quick and we don't really want to waste memory. In the case where the
driver does not support preallocated surfaces you can enable image
caching to speed up drawImage.
Reviewed-by: TrustMe
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h index e79ec61700..d33255b9b5 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h @@ -106,6 +106,7 @@ public: virtual void clip(const QVectorPath &path, Qt::ClipOperation op); virtual void clip(const QRect &rect, Qt::ClipOperation op); + static void initImageCache(int size); }; QT_END_HEADER |