Rename the Advanced Layers pref to indicate that it's stable. (bug 1385051 part 1, r=milan)

This commit is contained in:
David Anderson 2017-09-08 10:21:18 -07:00
Родитель 2e1f0b3cfe
Коммит b4357df64f
4 изменённых файлов: 5 добавлений и 5 удалений

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

@ -104,7 +104,7 @@ switch(osName)
var advancedLayersEnabled = false;
var advancedLayersEnabledOnWin7 = false;
try {
advancedLayersEnabled = SpecialPowers.getBoolPref("layers.mlgpu.dev-enabled");
advancedLayersEnabled = SpecialPowers.getBoolPref("layers.mlgpu.enabled");
advancedLayersEnabledOnWin7 = SpecialPowers.getBoolPref("layers.mlgpu.enable-on-windows7");
} catch (e) {}
var shouldGetAL = advancedLayersEnabled;

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

@ -591,7 +591,7 @@ private:
DECL_GFX_PREF(Live, "layers.low-precision-opacity", LowPrecisionOpacity, float, 1.0f);
DECL_GFX_PREF(Live, "layers.low-precision-resolution", LowPrecisionResolution, float, 0.25f);
DECL_GFX_PREF(Live, "layers.max-active", MaxActiveLayers, int32_t, -1);
DECL_GFX_PREF(Once, "layers.mlgpu.dev-enabled", AdvancedLayersEnabledDoNotUseDirectly, bool, false);
DECL_GFX_PREF(Once, "layers.mlgpu.enabled", AdvancedLayersEnabledDoNotUseDirectly, bool, false);
DECL_GFX_PREF(Once, "layers.mlgpu.enable-buffer-cache", AdvancedLayersEnableBufferCache, bool, true);
DECL_GFX_PREF(Once, "layers.mlgpu.enable-buffer-sharing", AdvancedLayersEnableBufferSharing, bool, true);
DECL_GFX_PREF(Once, "layers.mlgpu.enable-clear-view", AdvancedLayersEnableClearView, bool, true);

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

@ -5861,13 +5861,13 @@ pref("fuzzing.enabled", false);
#if defined(XP_WIN)
#if defined(NIGHTLY_BUILD)
pref("layers.mlgpu.dev-enabled", true);
pref("layers.mlgpu.enabled", true);
// Both this and the master "enabled" pref must be on to use Advanced Layers
// on Windows 7.
pref("layers.mlgpu.enable-on-windows7", true);
#else
pref("layers.mlgpu.dev-enabled", false);
pref("layers.mlgpu.enabled", false);
pref("layers.mlgpu.enable-on-windows7", false);
#endif
#endif

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

@ -22,7 +22,7 @@ const DISABLE_VIDEO_PREF = "media.hardware-video-decoding.failed";
const RUNNING_PREF = "sanity-test.running";
const TIMEOUT_SEC = 20;
const AL_ENABLED_PREF = "layers.mlgpu.dev-enabled";
const AL_ENABLED_PREF = "layers.mlgpu.enabled";
const AL_TEST_FAILED_PREF = "layers.mlgpu.sanity-test-failed";
// GRAPHICS_SANITY_TEST histogram enumeration values