Pixmap loader adds images to unreferenced list when cache: false
authorMartin Jones <martin.jones@nokia.com>
Fri, 27 Jul 2012 03:38:43 +0000 (13:38 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Jul 2012 06:43:06 +0000 (08:43 +0200)
commitd3224ad22a38264aaae81e96384182aee7c1053f
treebfe95c25c969ce90d17a42868f57a7893633d5d3
parent0408dcd6a9d45e110610c6ed14987189d4e16c90
Pixmap loader adds images to unreferenced list when cache: false

Don't add uncached images to the unreferenced list, since
they cannot be reused later as they are not in the cache.

Additionally, we currently search for images in the cache, even if we
set cache: false. Setting cache false should not put images in the cache
and should not use images that are in the cache.

Task-number: QTBUG-26676
Change-Id: Ib7eb42199ae6ae6154b696c83ad1dd959e0f208f
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/util/qquickpixmapcache.cpp
tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp