Bug 1722055 - Rename gfx.webrender.force-disabled. r=aosmond

Change the pref name in anticipation of removing it completely
to see what the fallout will be.

Differential Revision: https://phabricator.services.mozilla.com/D120735
This commit is contained in:
Jeff Muizelaar 2021-07-23 17:00:29 +00:00
Родитель 9ddb8fe28a
Коммит 1194fe927f
4 изменённых файлов: 4 добавлений и 4 удалений

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

@ -30,7 +30,7 @@ void gfxConfigManager::Init() {
EmplaceUserPref("gfx.webrender.compositor", mWrCompositorEnabled);
mWrForceEnabled = gfxPlatform::WebRenderPrefEnabled();
mWrForceDisabled = StaticPrefs::gfx_webrender_force_disabled_AtStartup();
mWrForceDisabled = StaticPrefs::gfx_webrender_force_legacy_layers_AtStartup();
mWrSoftwareForceEnabled = StaticPrefs::gfx_webrender_software_AtStartup();
mWrCompositorForceEnabled =
StaticPrefs::gfx_webrender_compositor_force_enabled_AtStartup();

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

@ -5024,7 +5024,7 @@
# Also expose a pref to allow users to force-disable WR. This is exposed
# on all channels because WR can be enabled on qualified hardware on all
# channels.
- name: gfx.webrender.force-disabled
- name: gfx.webrender.force-legacy-layers
type: bool
value: false
mirror: once

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

@ -27,7 +27,7 @@ const DISABLE_VIDEO_PREF = "media.hardware-video-decoding.failed";
const RUNNING_PREF = "sanity-test.running";
const TIMEOUT_SEC = 20;
const WR_DISABLED_PREF = "gfx.webrender.force-disabled";
const WR_DISABLED_PREF = "gfx.webrender.force-legacy-layers";
// GRAPHICS_SANITY_TEST histogram enumeration values
const TEST_PASSED = 0;

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

@ -289,7 +289,7 @@ const DEFAULT_ENVIRONMENT_PREFS = new Map([
["gfx.direct2d.force-enabled", { what: RECORD_PREF_VALUE }],
["gfx.webrender.all", { what: RECORD_PREF_VALUE }],
["gfx.webrender.all.qualified", { what: RECORD_PREF_VALUE }],
["gfx.webrender.force-disabled", { what: RECORD_PREF_VALUE }],
["gfx.webrender.force-legacy-layers", { what: RECORD_PREF_VALUE }],
["layers.acceleration.disabled", { what: RECORD_PREF_VALUE }],
["layers.acceleration.force-enabled", { what: RECORD_PREF_VALUE }],
["layers.async-pan-zoom.enabled", { what: RECORD_PREF_VALUE }],