Closed Bug 1573871 Opened 2 months ago Closed 2 months ago

Create less nsDisplayBackdropRootContainer items

Categories

(Core :: Web Painting, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: miko, Assigned: cbrewster)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Bug 1178765 added support for backdrop-filter, for which we now create new display items when the frame has opacity or any filters set.

These items are big (they derive from nsDisplayWrapList) and for performance reasons we should avoid creating them whenever possible. We can definitely avoid creating them when WebRender is disabled, since the items are flattened for non-WR code path.
For WebRender, it might be possible to only create them when backdrop filter is inside the container, similarly how we do with nsDisplayBlendContainer and nsDisplayMixBlendMode.

Assignee: nobody → cbrewster
Blocks: 1573963

Pushed by btara@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e777dd79ae26
Only create backdrop root containers when needed r=miko,mstange

Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.