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.
This commit is contained in:
Moonchild 2022-11-10 20:24:24 +00:00 • committed by roytam1
commit 7f87cc1276
2 changed files with 7 additions and 1 deletions

View file

@ -448,7 +448,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);