Closed Bug 1920058 Opened 2 months ago Closed 2 months ago

Add a debug view clearly showing layerization

Categories

(Core :: Graphics: WebRender, task, P3)

task

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: nical, Assigned: nical)

References

(Blocks 1 open bug)

Details

(Whiteboard: [viewtransitions:m1:gfx])

Attachments

(2 files)

I find myself missing the gfx.layers.show-borders view from the pre-webrender era. We have a debug overlay for picture cache slices which is useful to observe the behavior of the invalidation logic, but it is too hard to read the layerization breakdown, and it does not show child pictures.

Without this, I have to load wrench replays in renderdoc to observe the layerization while prototyping the view-transitions work which is too time consuming.

The debug view would overlay borders on top of the rendered frames for picture cache slices, tiles and, child pictures with different colors.

This patch moves the logic to draw the tiled picture overlay out of the entirely too large take_context into a separate function, and add a separate option to draw only the borders of all pictures (non-tiled ones included) and tiles. This new overlay is enabled via the pref gfx.webrender.debug.picture-borders and is useful when trying to observe the breakdown of the page into pictures.
It does not quite do what I want it to: borders for non-tiled pictures seem to only appear on the frame they are drawn and aren't shown in subsequent frames unles the containing tile cache is invalidated. So there will probably be followup adjustments, but the functionality is already useful in its current state.

Assignee: nobody → nical.bugzilla
Status: NEW → ASSIGNED
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c57bdb9e97a0 Add a debug pref to show picture borders. r=gfx-reviewers,lsalzman https://hg.mozilla.org/integration/autoland/rev/2c20d0704d4e Support drawing debug rects with a thickness. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Whiteboard: [viewtransitions:m1:gfx]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: