зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1842345 - Remove gfx.webrender.enabled pref r=jrmuizel,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D183071
This commit is contained in:
Родитель
1cfd3a3bc7
Коммит
76facf7cd2
|
@ -188,7 +188,7 @@ async function openWebCompatTab(compatInfo) {
|
|||
}
|
||||
delete details.frameworks;
|
||||
|
||||
if (details["gfx.webrender.all"] || details["gfx.webrender.enabled"]) {
|
||||
if (details["gfx.webrender.all"]) {
|
||||
params.extra_labels.push("type-webrender-enabled");
|
||||
}
|
||||
if (compatInfo.hasTrackingContentBlocked) {
|
||||
|
|
|
@ -125,7 +125,6 @@ this.browserInfo = class extends ExtensionAPI {
|
|||
"layers.acceleration.force-enabled": false,
|
||||
"gfx.webrender.all": false,
|
||||
"gfx.webrender.blob-images": true,
|
||||
"gfx.webrender.enabled": false,
|
||||
})) {
|
||||
prefs[name] = Services.prefs.getBoolPref(name, dflt);
|
||||
}
|
||||
|
|
|
@ -204,10 +204,6 @@ add_task(async function test_opened_page() {
|
|||
typeof details["gfx.webrender.blob-images"] == "boolean",
|
||||
"Details has gfx.webrender.blob-images."
|
||||
);
|
||||
ok(
|
||||
typeof details["gfx.webrender.enabled"] == "boolean",
|
||||
"Details has gfx.webrender.enabled."
|
||||
);
|
||||
|
||||
is(
|
||||
preview.innerText,
|
||||
|
|
|
@ -2574,8 +2574,7 @@ void gfxPlatform::InitCompositorAccelerationPrefs() {
|
|||
|
||||
/*static*/
|
||||
bool gfxPlatform::WebRenderPrefEnabled() {
|
||||
return StaticPrefs::gfx_webrender_all_AtStartup() ||
|
||||
StaticPrefs::gfx_webrender_enabled_AtStartup_DoNotUseDirectly();
|
||||
return StaticPrefs::gfx_webrender_all_AtStartup();
|
||||
}
|
||||
|
||||
/*static*/
|
||||
|
|
|
@ -7,7 +7,7 @@ To build and run WebRender in Gecko:
|
|||
2. Build using |mach build|.
|
||||
You don't need anything special in your mozconfig for local builds; webrender will be built by default.
|
||||
3. Run with |MOZ_WEBRENDER=1| in your environment. e.g. |MOZ_WEBRENDER=1 ./mach run|.
|
||||
Alternatively, you can set the gfx.webrender.enabled pref to true (browser restart required).
|
||||
Alternatively, you can set the gfx.webrender.all pref to true (browser restart required).
|
||||
Note that on Linux, acceleration is disabled by default and it needs to be enabled for WebRender to work.
|
||||
On Linux you can enable acceleration by putting |MOZ_ACCELERATED=1| in your environment, or setting layers.acceleration.force-enabled to true in about:config.
|
||||
4. Verify WebRender is enabled. You can do this by going to about:support and checking the "Compositing" line in the Graphics section. It should say "WebRender".
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
<head></head>
|
||||
<body>
|
||||
<!--
|
||||
If invalid url isn't correctly handled, this test will crash when
|
||||
gfx.webrender.enabled=true and gfx.webrender.all=true
|
||||
If invalid url isn't correctly handled, this test will crash when gfx.webrender.all=true
|
||||
-->
|
||||
<div style="padding: 1px; filter:url('data://not-valid-data');"></div>
|
||||
</body>
|
||||
|
|
|
@ -6382,21 +6382,12 @@
|
|||
value: false
|
||||
mirror: once
|
||||
|
||||
# We expose two prefs: gfx.webrender.all and gfx.webrender.enabled.
|
||||
# The first enables WR+additional features, and the second just enables WR.
|
||||
# For developer convenience, building with --enable-webrender=true or just
|
||||
# --enable-webrender will set gfx.webrender.enabled to true by default.
|
||||
# Whether to use the WebRender hardware backend
|
||||
- name: gfx.webrender.all
|
||||
type: bool
|
||||
value: false
|
||||
mirror: once
|
||||
|
||||
- name: gfx.webrender.enabled
|
||||
type: bool
|
||||
value: false
|
||||
mirror: once
|
||||
do_not_use_directly: true
|
||||
|
||||
#ifdef XP_WIN
|
||||
- name: gfx.webrender.force-angle
|
||||
type: bool
|
||||
|
|
Загрузка…
Ссылка в новой задаче