summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorMartok <martok@martoks-place.de>2022-12-31 22:55:46 +0100
committerMartok <martok@martoks-place.de>2023-01-04 00:49:04 +0100
commitb618b3fb767e61f73732a0385f733357571314b0 (patch)
treec7e53031c59f85d10ee167dc999696edc46eaa79 /gfx
parente7fd4ba61bec3736df2f50eb0e7b215a805dde06 (diff)
downloaduxp-b618b3fb767e61f73732a0385f733357571314b0.tar.gz
Issue #2073 - m-c 523950: Discard decoded frames of very large GIF animations (squashed)
Controlled by image.animated.decode-on-demand.threshold-kb, default 256MB Includes squashed bugfixes/regressions: - m-c 1444537: Shutting down the decode pool should make animated decoders bail early - m-c 1628606: Make sure to mark the surface cache entry available before sending the frame complete notification - m-c 1502275: Skip recreating the decoder after redecode errors if an animated image is reset - m-c 1443232: Don't insert frames into our AnimationFrameBuffer that we consider in error and unusable
Diffstat (limited to 'gfx')
-rw-r--r--gfx/thebes/gfxPrefs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/thebes/gfxPrefs.h b/gfx/thebes/gfxPrefs.h
index 259b28b901..fa0cd1a864 100644
--- a/gfx/thebes/gfxPrefs.h
+++ b/gfx/thebes/gfxPrefs.h
@@ -429,6 +429,8 @@ private:
#endif
DECL_GFX_PREF(Live, "gl.require-hardware", RequireHardwareGL, bool, false);
+ DECL_GFX_PREF(Live, "image.animated.decode-on-demand.threshold-kb", ImageAnimatedDecodeOnDemandThresholdKB, uint32_t, 256*1024);
+ DECL_GFX_PREF(Live, "image.animated.decode-on-demand.batch-size", ImageAnimatedDecodeOnDemandBatchSize, uint32_t, 6);
DECL_GFX_PREF(Once, "image.cache.size", ImageCacheSize, int32_t, 5*1024*1024);
DECL_GFX_PREF(Once, "image.cache.timeweight", ImageCacheTimeWeight, int32_t, 500);
DECL_GFX_PREF(Live, "image.decode-immediately.enabled", ImageDecodeImmediatelyEnabled, bool, false);