summaryrefslogtreecommitdiffstats
path: root/gfx/thebes/gfxPrefs.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-07-14 07:45:06 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-07-14 07:45:06 +0200
commitdc9d933d81646b53edab245eb8f96b1e82ba752f (patch)
tree1ed71efd273183764ac549992dc3fc965a4c025f /gfx/thebes/gfxPrefs.h
parent6bb3a908d34728fec0a3520eac03ad9b69dd4a9b (diff)
downloadUXP-dc9d933d81646b53edab245eb8f96b1e82ba752f.tar
UXP-dc9d933d81646b53edab245eb8f96b1e82ba752f.tar.gz
UXP-dc9d933d81646b53edab245eb8f96b1e82ba752f.tar.lz
UXP-dc9d933d81646b53edab245eb8f96b1e82ba752f.tar.xz
UXP-dc9d933d81646b53edab245eb8f96b1e82ba752f.zip
Add pref to control CanOptimizeToImageLayer for large downscale factors.
This resolves #626
Diffstat (limited to 'gfx/thebes/gfxPrefs.h')
-rw-r--r--gfx/thebes/gfxPrefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/thebes/gfxPrefs.h b/gfx/thebes/gfxPrefs.h
index 71485ff22..359a258c7 100644
--- a/gfx/thebes/gfxPrefs.h
+++ b/gfx/thebes/gfxPrefs.h
@@ -436,6 +436,7 @@ private:
DECL_GFX_PREF(Live, "image.decode-immediately.enabled", ImageDecodeImmediatelyEnabled, bool, false);
DECL_GFX_PREF(Live, "image.downscale-during-decode.enabled", ImageDownscaleDuringDecodeEnabled, bool, true);
DECL_GFX_PREF(Live, "image.infer-src-animation.threshold-ms", ImageInferSrcAnimationThresholdMS, uint32_t, 2000);
+ DECL_GFX_PREF(Once, "image.layerize.always", ImageLayerizeAlways, bool, false);
DECL_GFX_PREF(Once, "image.mem.decode_bytes_at_a_time", ImageMemDecodeBytesAtATime, uint32_t, 200000);
DECL_GFX_PREF(Live, "image.mem.discardable", ImageMemDiscardable, bool, false);
DECL_GFX_PREF(Once, "image.mem.surfacecache.discard_factor", ImageMemSurfaceCacheDiscardFactor, uint32_t, 1);