Bug 1726118 - Prefix all webrender debug prefs with gfx.webrender.debug. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D123965
This commit is contained in:
@@ -1649,9 +1649,9 @@ bool WebRenderCommandBuilder::ShouldDumpDisplayList(
|
|||||||
nsDisplayListBuilder* aBuilder) {
|
nsDisplayListBuilder* aBuilder) {
|
||||||
return aBuilder && aBuilder->IsInActiveDocShell() &&
|
return aBuilder && aBuilder->IsInActiveDocShell() &&
|
||||||
((XRE_IsParentProcess() &&
|
((XRE_IsParentProcess() &&
|
||||||
StaticPrefs::gfx_webrender_dl_dump_parent()) ||
|
StaticPrefs::gfx_webrender_debug_dl_dump_parent()) ||
|
||||||
(XRE_IsContentProcess() &&
|
(XRE_IsContentProcess() &&
|
||||||
StaticPrefs::gfx_webrender_dl_dump_content()));
|
StaticPrefs::gfx_webrender_debug_dl_dump_content()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebRenderCommandBuilder::CreateWebRenderCommands(
|
void WebRenderCommandBuilder::CreateWebRenderCommands(
|
||||||
@@ -2141,7 +2141,7 @@ WebRenderCommandBuilder::GenerateFallbackData(
|
|||||||
bool useBlobImage =
|
bool useBlobImage =
|
||||||
StaticPrefs::gfx_webrender_blob_images() && !paintOnContentSide;
|
StaticPrefs::gfx_webrender_blob_images() && !paintOnContentSide;
|
||||||
Maybe<gfx::DeviceColor> highlight = Nothing();
|
Maybe<gfx::DeviceColor> highlight = Nothing();
|
||||||
if (StaticPrefs::gfx_webrender_highlight_painted_layers()) {
|
if (StaticPrefs::gfx_webrender_debug_highlight_painted_layers()) {
|
||||||
highlight = Some(useBlobImage ? gfx::DeviceColor(1.0, 0.0, 0.0, 0.5)
|
highlight = Some(useBlobImage ? gfx::DeviceColor(1.0, 0.0, 0.0, 0.5)
|
||||||
: gfx::DeviceColor(1.0, 1.0, 0.0, 0.5));
|
: gfx::DeviceColor(1.0, 1.0, 0.0, 0.5));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ void WebRenderLayerManager::EndTransactionWithoutLayer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (XRE_IsContentProcess() &&
|
if (XRE_IsContentProcess() &&
|
||||||
StaticPrefs::gfx_webrender_dl_dump_content_serialized()) {
|
StaticPrefs::gfx_webrender_debug_dl_dump_content_serialized()) {
|
||||||
mDLBuilder->DumpSerializedDisplayList();
|
mDLBuilder->DumpSerializedDisplayList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -432,7 +432,7 @@ static bool Moz2DRenderCallback(const Range<const uint8_t> aBlob,
|
|||||||
offset = extra_end;
|
offset = extra_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StaticPrefs::gfx_webrender_blob_paint_flashing()) {
|
if (StaticPrefs::gfx_webrender_debug_blob_paint_flashing()) {
|
||||||
dt->SetTransform(gfx::Matrix());
|
dt->SetTransform(gfx::Matrix());
|
||||||
float r = float(rand()) / float(RAND_MAX);
|
float r = float(rand()) / float(RAND_MAX);
|
||||||
float g = float(rand()) / float(RAND_MAX);
|
float g = float(rand()) / float(RAND_MAX);
|
||||||
|
|||||||
@@ -5101,27 +5101,27 @@
|
|||||||
value: false
|
value: false
|
||||||
mirror: always
|
mirror: always
|
||||||
|
|
||||||
- name: gfx.webrender.blob.paint-flashing
|
- name: gfx.webrender.debug.blob.paint-flashing
|
||||||
type: RelaxedAtomicBool
|
type: RelaxedAtomicBool
|
||||||
value: false
|
value: false
|
||||||
mirror: always
|
mirror: always
|
||||||
|
|
||||||
- name: gfx.webrender.enable-capture
|
- name: gfx.webrender.debug.enable-capture
|
||||||
type: bool
|
type: bool
|
||||||
value: false
|
value: false
|
||||||
mirror: once
|
mirror: once
|
||||||
|
|
||||||
- name: gfx.webrender.dl.dump-parent
|
- name: gfx.webrender.debug.dl.dump-parent
|
||||||
type: RelaxedAtomicBool
|
type: RelaxedAtomicBool
|
||||||
value: false
|
value: false
|
||||||
mirror: always
|
mirror: always
|
||||||
|
|
||||||
- name: gfx.webrender.dl.dump-content
|
- name: gfx.webrender.debug.dl.dump-content
|
||||||
type: RelaxedAtomicBool
|
type: RelaxedAtomicBool
|
||||||
value: false
|
value: false
|
||||||
mirror: always
|
mirror: always
|
||||||
|
|
||||||
- name: gfx.webrender.dl.dump-content-serialized
|
- name: gfx.webrender.debug.dl.dump-content-serialized
|
||||||
type: RelaxedAtomicBool
|
type: RelaxedAtomicBool
|
||||||
value: false
|
value: false
|
||||||
mirror: always
|
mirror: always
|
||||||
@@ -5133,7 +5133,7 @@
|
|||||||
mirror: once
|
mirror: once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
- name: gfx.webrender.highlight-painted-layers
|
- name: gfx.webrender.debug.highlight-painted-layers
|
||||||
type: RelaxedAtomicBool
|
type: RelaxedAtomicBool
|
||||||
value: false
|
value: false
|
||||||
mirror: always
|
mirror: always
|
||||||
|
|||||||
Reference in New Issue
Block a user