Closed Bug 1344002 Opened 7 years ago Closed 7 years ago

Convert nsDisplayOpacity to WR Display Item

Categories

(Core :: Graphics: WebRender, enhancement)

51 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mchang, Assigned: mchang)

References

Details

      No description provided.
After looking through the code in nsDisplayList.cpp [1], I'm not sure we need a WR display layer / conversion. nsDisplayOpacity builds a container layer and sets the opacity there, then depends on the children to render themselves. WR already supports a container layer.. which I think means we probably want to keep the same logic for this display item. Does this sound about right to you?

[1] http://searchfox.org/mozilla-central/source/layout/painting/nsDisplayList.cpp#5277
Flags: needinfo?(matt.woodrow)
Yes, there is nothing to do for nsDisplayOpacity. Same for the other container-style nsDisplayItem types: nsDisplayTransform, nsDisplayBlendMode, nsDisplayBlendContainer, nsDisplayMask, nsDisplayOwnLayer. These are already supported by our current layer system.
The only exception is nsDisplayFilter, which is a whole separate project.
Flags: needinfo?(matt.woodrow)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.