Closed Bug 1583998 Opened 4 months ago Closed 4 months ago

Prototype a pref to obscure images

Categories

(Core :: Graphics: WebRender, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: bholley, Assigned: bholley)

Details

Attachments

(2 files)

It would occasionally be nice to be able to debug sites without looking at image/video content. I've got a patch.

The current code doesn't permit fully opaque debug rects.

This approach does have some stacking issues. The way to fix this would
be to instrument the brush_image shader rather than adding debug rects.

Something like: #ifdef WR_FEATURE_SFW frag.color = vec4(0,1,1,1); #endif

That's slightly more involved though, so I'm going to leave it for now.

Pushed by bholley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/90162306864c
Refactor debug rectangles to allow the outer and inner colors to be explicitly specified. r=gw
https://hg.mozilla.org/integration/autoland/rev/f59ec3966f5f
Implement a pref to obscure images. r=gw
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.