summaryrefslogtreecommitdiff
path: root/gfx/thebes
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-11-10 20:24:24 +0000
committerMoonchild <moonchild@palemoon.org>2022-11-11 12:25:17 +0000
commitfb0c204f2b59485e796b93ce89f73af552b05c2b (patch)
tree2b432422f0ab1b994f72ce2b4492a71b8e6f7eb0 /gfx/thebes
parente6888aa2bd284b48c52c4ea7989330c6d97b64ba (diff)
downloaduxp-fb0c204f2b59485e796b93ce89f73af552b05c2b.tar.gz
Issue #1769 - Follow-up: Default-enable JPEG-XL images if built
Sets the pref default to true and also add conneg entry for images if jxl support is built. Additionally, ifdefs the GfxPref to only observe when jxl is built.
Diffstat (limited to 'gfx/thebes')
-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 cc1d5227b6..7a4ca7ed38 100644
--- a/gfx/thebes/gfxPrefs.h
+++ b/gfx/thebes/gfxPrefs.h
@@ -444,7 +444,9 @@ private:
DECL_GFX_PREF(Live, "image.mozsamplesize.enabled", ImageMozSampleSizeEnabled, bool, false);
DECL_GFX_PREF(Once, "image.multithreaded_decoding.limit", ImageMTDecodingLimit, int32_t, -1);
DECL_GFX_PREF(Live, "image.webp.enabled", ImageWebPEnabled, bool, true);
+#ifdef MOZ_JXL
DECL_GFX_PREF(Live, "image.jxl.enabled", ImageJXLEnabled, bool, true);
+#endif
DECL_GFX_PREF(Once, "layers.acceleration.enabled", LayersAccelerationEnabledDoNotUseDirectly, bool, true);
DECL_GFX_PREF(Live, "layers.acceleration.draw-fps", LayersDrawFPS, bool, false);