Closed Bug 1500575 Opened 7 years ago Closed 7 years ago

Can we do better than blob images for some clip-paths?

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

Bug 1500300 triggers a giant blob image as an image mask because the container has a fixed-position child underneath. However it looks to me like we ough to be able to push a clip rect instead of a blob image, since the page is only using the inset() function. I'm not familiar with all the clip-path setup in order to know whether the current behavior is just suboptimal or needed for correctness in some cases. Markus, does the above sound reasonable?
(See comment 0)
Flags: needinfo?(mstange)
Also, https://christopher-tierney.com/apotheke-la/ is a real-world page that would trigger this... I guess we should first measure once I get the tiled mask images landed.
It would be very valuable to optimize inset() clip paths into rectangle clips. There should be no difference from a correctness perspective. (It's possible that we currently don't pixel-snap inset() clips, so they might have blurry edges, but that's not a desirable result anyway.)
Flags: needinfo?(mstange)
(Just so it doesn't fall of my radar)
Flags: needinfo?(emilio)
Attached file Testcase
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Attachment #9019069 - Attachment description: Bug 1500575 - [WIP] Map inset clip paths to WR complex clip regions. → Bug 1500575 - Map inset clip paths to WR complex clip regions.
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/9140cba9a8f8 Map inset clip paths to WR complex clip regions. r=kats
Flags: needinfo?(emilio)
Blocks: 1501122
Blocks: 1501125
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: