diff options
author | Martok <martok@martoks-place.de> | 2022-12-30 23:47:18 +0100 |
---|---|---|
committer | Martok <martok@martoks-place.de> | 2023-01-03 02:01:10 +0100 |
commit | e7fd4ba61bec3736df2f50eb0e7b215a805dde06 (patch) | |
tree | a5cdc7d54a56b8055a2b07de3795eda42910467e /gfx/thebes | |
parent | 608ecc95492e1a4acd3abeefa7f06f5bf360b182 (diff) | |
download | uxp-e7fd4ba61bec3736df2f50eb0e7b215a805dde06.tar.gz |
Issue #2073 - m-c 1343341: Infrastructure necessary to allow discarding of animated images (squashed)
Includes squashed changes of:
- m-c 1317907: Refactor FrameAnimator::GetCompositedFrame to be a bit simpler
- m-c 1351434: bugfix
- m-c 686905: Enable the pref image.mem.animated.discardable to allow discarding of animated images
Diffstat (limited to 'gfx/thebes')
-rw-r--r-- | gfx/thebes/gfxPrefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/thebes/gfxPrefs.h b/gfx/thebes/gfxPrefs.h index 7a4ca7ed38..259b28b901 100644 --- a/gfx/thebes/gfxPrefs.h +++ b/gfx/thebes/gfxPrefs.h @@ -437,6 +437,7 @@ private: 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.animated.discardable", ImageMemAnimatedDiscardable, bool, false); DECL_GFX_PREF(Once, "image.mem.surfacecache.discard_factor", ImageMemSurfaceCacheDiscardFactor, uint32_t, 1); DECL_GFX_PREF(Once, "image.mem.surfacecache.max_size_kb", ImageMemSurfaceCacheMaxSizeKB, uint32_t, 100 * 1024); DECL_GFX_PREF(Once, "image.mem.surfacecache.min_expiration_ms", ImageMemSurfaceCacheMinExpirationMS, uint32_t, 60*1000); |