Closed Bug 1918138 Opened 1 year ago Closed 1 year ago

Ensure that shadows are correctly baked into VT snapshots

Categories

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

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: nical, Assigned: nical)

References

Details

(Whiteboard: [viewtransitions:m1:gfx])

Attachments

(1 file)

Normally, if the stacking context has drop shadows we would render the stacking context into an off-screen surface and render the blur under it in the parent picture.

To do this properly with view-transitions we need to either

  • bake the shadows into the snapshot.
  • add some info about effects such as shadows to the snapshot and draw the shadows whenever the snapshot's image is drawn.

I suspect that the former would be simpler.

Blocks: 1918140
No longer blocks: 1914320
No longer depends on: 1918133

I am concerned that getting this right will require the content side to be able to know the exact inflated bounds of the stacking context to account for the shadow and correctly position and size the image display item of the snapshot.

It may be simpler to implement on the display-list building side instead of WebRender, by snapshotting without the shadows and wrapping the snapshotted images with the shadows.

Whiteboard: [viewtransitions:m1:gfx]
Assignee: nical.bugzilla → nobody
Assignee: nobody → nical.bugzilla
Status: NEW → ASSIGNED
Attachment #9446492 - Attachment description: Bug 1918138 - Add a wrench test for snapshots with shadows. r=gw → moz-phab submit .Bug 1918138 - Add a wrench test for snapshots with shadows. r=gw
Attachment #9446492 - Attachment description: moz-phab submit .Bug 1918138 - Add a wrench test for snapshots with shadows. r=gw → Bug 1918138 - Add a wrench test for snapshots with shadows. r=gw
Attachment #9446492 - Attachment description: Bug 1918138 - Add a wrench test for snapshots with shadows. r=gw → Bug 1918138 - Add a wrench test for snapshots with shadows. r=#gfx-reviewers
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5a7a8a6c90aa Add a wrench test for snapshots with shadows. r=jnicol
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/57020ef53c55 Add a wrench test for snapshots with shadows. r=jnicol
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Regressions: 1871578
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: