diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml index 801fc6a71c63..dd293cee0849 100644 --- a/modules/libpref/init/StaticPrefList.yaml +++ b/modules/libpref/init/StaticPrefList.yaml @@ -3568,7 +3568,7 @@ #if defined(XP_MACOSX) - name: gl.multithreaded type: RelaxedAtomicBool - value: false + value: true mirror: always #endif @@ -3608,7 +3608,7 @@ mirror: always #--------------------------------------------------------------------------- -# Prefs starting with "image." +# Prefs starting with "idle_period." #--------------------------------------------------------------------------- - name: idle_period.min @@ -3714,11 +3714,14 @@ value: false mirror: always +# Enable extra information for debugging in the image memory reports. - name: image.mem.debug-reporting type: RelaxedAtomicBool value: false mirror: always +# Decodes images into shared memory to allow direct use in separate +# rendering processes. Only applicable with WebRender. - name: image.mem.shared type: RelaxedAtomicBool value: true @@ -3757,9 +3760,15 @@ value: 4 mirror: once +# Minimum buffer size in KB before using volatile memory over the heap. - name: image.mem.volatile.min_threshold_kb type: RelaxedAtomicInt32 +#if defined(ANDROID) + # On Android, volatile memory keeps file handles open for each buffer. + value: 100 +#else value: -1 +#endif mirror: always # How long in ms before we should start shutting down idle decoder threads. @@ -3775,9 +3784,10 @@ value: -1 mirror: once +# Whether we attempt to decode WebP images or not. - name: image.webp.enabled type: RelaxedAtomicBool - value: false + value: true mirror: always #--------------------------------------------------------------------------- diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 1dac06907975..496a941ab603 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -4192,36 +4192,9 @@ pref("image.mem.discardable", true); pref("image.mem.animated.use_heap", false); #endif -// Enable extra information for debugging in the image memory reports. -pref("image.mem.debug-reporting", false); - -// Decodes images into shared memory to allow direct use in separate -// rendering processes. Only applicable with WebRender. -pref("image.mem.shared", true); - // Allows image locking of decoded image data in content processes. pref("image.mem.allow_locking_in_content_processes", true); -// What is the minimum buffer size in KB before using volatile memory over the -// heap. On Android, volatile memory keeps file handles open for each buffer. -#if defined(ANDROID) - pref("image.mem.volatile.min_threshold_kb", 100); -#else - pref("image.mem.volatile.min_threshold_kb", -1); -#endif - -// Whether we attempt to decode WebP images or not. -pref("image.webp.enabled", true); - -// WebGL prefs -pref("gl.require-hardware", false); -#ifdef XP_MACOSX - pref("gl.multithreaded", true); -#endif -pref("gl.ignore-dx-interop2-blacklist", false); -pref("gl.use-tls-is-current", 0); -pref("gl.allow-high-power", true); - #ifdef XP_MACOSX pref("webgl.1.allow-core-profiles", true); #else