Bug 1575983 - Remove duplicate gl.* and image.* prefs r=njn

Removes all duplicate gl.* prefs and 5 duplicate image.* prefs from all.js. Replaces default values in StaticPrefList.yaml with their all.js counterparts where needed. Imports comments from all.js.

Differential Revision: https://phabricator.services.mozilla.com/D44558

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kristen Wright 2019-09-04 03:14:31 +00:00
Родитель 79b6f9ba3d
Коммит 741c341a02
2 изменённых файлов: 13 добавлений и 30 удалений

Просмотреть файл

@ -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
#---------------------------------------------------------------------------

Просмотреть файл

@ -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