summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-01-06 23:42:44 +0900
committerTomaž Vajngerl <quikee@gmail.com>2018-01-07 03:12:33 +0100
commit57d9503056d83605645bf0ad4d5d82a04e28ef98 (patch)
treed4177679aeae296fec5148d3fa98e4939b9db6e2 /vcl/inc
parent1a012a90b454604d127bbfb5babd5f92e2231524 (diff)
svg icon caching even for 1x scaling
Previously we cached an icon only if we changed the scaling factor or re-colored the icon, however if we have svg icons we want to cache all of the variants, including the unscaled/un-colored one as svg rendering is slower than loading cached png icons. Change-Id: Ie2c14687892bbd12b8e04c690a66c5a1a92ac8b0 Reviewed-on: https://gerrit.libreoffice.org/47498 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/implimagetree.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/implimagetree.hxx b/vcl/inc/implimagetree.hxx
index d939b63e6d86..92052e3c57e4 100644
--- a/vcl/inc/implimagetree.hxx
+++ b/vcl/inc/implimagetree.hxx
@@ -45,6 +45,7 @@ struct ImageRequestParameters
BitmapEx& mrBitmap;
bool mbLocalized;
ImageLoadFlags meFlags;
+ bool mbWriteImageToCache;
ImageRequestParameters(const OUString & rName, const OUString & rStyle, BitmapEx& rBitmap, bool bLocalized, ImageLoadFlags eFlags)
: msName(rName)
@@ -52,6 +53,7 @@ struct ImageRequestParameters
, mrBitmap(rBitmap)
, mbLocalized(bLocalized)
, meFlags(eFlags)
+ , mbWriteImageToCache(false)
{}
bool convertToDarkTheme();