summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-12-09 12:39:16 +0100
committerLuboš Luňák <l.lunak@collabora.com>2020-12-11 11:05:58 +0100
commitbeaf7e142977e5607f205e1a001e57a31588fef9 (patch)
tree5e7abce29ca954ed150f81dbae2d52f81188d3b2 /officecfg
parent4aa9cb784469b8c13660f36c829c0fadc11c922b (diff)
make Skia image cache size configurable
As asked for in tdf#136244 comment #11. The default fits 4x 2000px 32bpp images, which is 64MiB, which is not that little, but then 4x 2000px is not that much either. So, yes, configurable ... A good further improvement would be to make the cache grow more if the memory is available and reduce the size on memory pressure (https://lists.freedesktop.org/archives/libreoffice/2020-December/086404.html). Change-Id: Ifa05025ab34630e456465ac8a96950463fd18b60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107468 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com> (cherry picked from commit fae487b70adb95cdac5f2ae108d5c25580112147) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107540
Diffstat (limited to 'officecfg')
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Common.xcs14
1 files changed, 14 insertions, 0 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index 02e62d950ed2..ac14fc3e5d7d 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -1598,6 +1598,20 @@
<value>10</value>
</prop>
</group>
+ <group oor:name="Skia">
+ <info>
+ <desc>Specifies a group of cache options related to Skia-based drawing.</desc>
+ </info>
+ <prop oor:name="ImageCacheSize" oor:type="xs:long" oor:nillable="false">
+ <info>
+ <desc>Specifies the maximum cache size in bytes for all images used by Skia-based
+ drawing code. Larger size may improve drawing performance when using
+ many large images in software rendering mode.</desc>
+ <label>Image Cache Size</label>
+ </info>
+ <value>64000000</value>
+ </prop>
+ </group>
</group>
<group oor:name="Path">
<!--OldLocation: soffice.ini -->