Render missing stacking context snapshots as a transparent image
Categories
(Core :: Graphics: WebRender, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox137 | --- | fixed |
People
(Reporter: nical, Assigned: nical)
References
Details
(Whiteboard: [viewtransitions:m1:gfx])
Attachments
(2 files)
There is a long tail of tricky cases where webrender fails to produce a stacking context snapshot. All of the known cases involve WebRender culling the snapshot more aggressively than it should. Typically it involves cases where the sacking context cannot be projected to the screen at the time of snapshotting (but ideally a snapshot should be produced in case the transition changes the transform in a way that makes the snapshot visible and renderable), or simply an empty stacking context (in which case producing a transparent image is the correct thing to do).
It would be best to handle each case specifically, but as we discover and go through new ones, the most graceful way to handle running into these cases is to fall back to rendering a transparent image. This may add transparency fade-in or fade-out transition to the animation that was not intended by the author in some cases, but it is better than crashing or canceling the transition.
Assignee | ||
Comment 1•6 months ago
|
||
A followup patch will add debug prefs to panic or use pink instead of transparent
for the fallback image.
Assignee | ||
Comment 2•6 months ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7a4f645b7b18
https://hg.mozilla.org/mozilla-central/rev/2170cebcbf0a
Description
•