Closed
Bug 1491590
Opened 6 years ago
Closed 6 years ago
Clip not set properly for nsDisplayMask items
Categories
(Core :: Graphics: WebRender, enhancement, P1)
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: jrmuizel)
References
Details
Attachments
(1 file)
We currently set the clip to the paint rect in mask items. However since we don't do the ComputeVisibility with blob invalidation the paint rect is still set to the building rect and the clip doesn't end up getting set to the tighter bounds.
Assignee | ||
Updated•6 years ago
|
Blocks: stage-wr-trains
Priority: -- → P2
Assignee | ||
Comment 1•6 years ago
|
||
Making P1 because this is pretty big performance problem with SVG.
Priority: P2 → P1
Comment 2•6 years ago
|
||
The regular "fallback item" path in WebRenderCommandsBuilder sets the PaintRect to the clipped bounds of the item: https://searchfox.org/mozilla-central/rev/bdc89dfd7869e418d788b28eb60ab8d94e708a15/gfx/layers/wr/WebRenderCommandBuilder.cpp#1778-1790
Would that help here? Otherwise we may just want to call ComputeVisibility the way FrameLayerBuilder does.
Comment 3•6 years ago
|
||
I'm confused, the linked code also calls ComputeVisibility?
Comment 4•6 years ago
|
||
You're right. For some reason I missed that.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → jmuizelaar
Assignee | ||
Comment 5•6 years ago
|
||
This prevents us from doing unnecessary drawing because we clip to
the bounds of the item.
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Comment on attachment 9010753 [details]
Bug 1491590. Make sure that the paint rect is set to the bounds
Markus Stange [:mstange] has approved the revision.
Attachment #9010753 -
Flags: review+
Comment 10•6 years ago
|
||
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8d4ed588ff40
Make sure that the paint rect is set to the bounds. r=mstange
Comment 11•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•