commit bc5e4f70a0f4e3fd295a3cdd1265768a5c605831
parent 193207c7b38896a9256b87297e1e586067058c0e
Author: Nicolas Silva <nical@fastmail.com>
Date: Wed, 15 Oct 2025 20:22:45 +0000
Bug 1994178 - Remove orphaned debug flag PRIMITIVE_DBG. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D268533
Diffstat:
3 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp
@@ -546,7 +546,6 @@ static void WebRenderDebugPrefChangeCallback(const char* aPrefName, void*) {
GFX_WEBRENDER_DEBUG(".picture-borders", wr::DebugFlags::PICTURE_BORDERS)
GFX_WEBRENDER_DEBUG(".force-picture-invalidation",
wr::DebugFlags::FORCE_PICTURE_INVALIDATION)
- GFX_WEBRENDER_DEBUG(".primitives", wr::DebugFlags::PRIMITIVE_DBG)
// Bit 18 is for the zoom display, which requires the mouse position and thus
// currently only works in wrench.
GFX_WEBRENDER_DEBUG(".small-screen", wr::DebugFlags::SMALL_SCREEN)
diff --git a/gfx/wr/webrender/src/renderer/mod.rs b/gfx/wr/webrender/src/renderer/mod.rs
@@ -1463,7 +1463,7 @@ impl Renderer {
DebugFlags::EPOCHS |
DebugFlags::GPU_CACHE_DBG |
DebugFlags::PICTURE_CACHING_DBG |
- DebugFlags::PRIMITIVE_DBG |
+ DebugFlags::PICTURE_BORDERS |
DebugFlags::ZOOM_DBG |
DebugFlags::WINDOW_VISIBILITY_DBG
);
diff --git a/gfx/wr/webrender_api/src/lib.rs b/gfx/wr/webrender_api/src/lib.rs
@@ -714,8 +714,6 @@ bitflags! {
const TEXTURE_CACHE_DBG_CLEAR_EVICTED = 1 << 10;
/// Show picture caching debug overlay
const PICTURE_CACHING_DBG = 1 << 11;
- /// Highlight all primitives with colors based on kind.
- const PRIMITIVE_DBG = 1 << 12;
/// Draw a zoom widget showing part of the framebuffer zoomed in.
const ZOOM_DBG = 1 << 13;
/// Scale the debug renderer down for a smaller screen. This will disrupt