Page MenuHomePhabricator

Bug 1607746 - Part 1: Move opacity to its own shader in WebRender r?nical
ClosedPublic

Authored by cbrewster on Jan 12 2020, 1:00 AM.

Details

Summary

Opacity is a common effect that is used and the opacit filter path is also used when a stacking
context has an opacity of < 1. The brush_blend shader is slow since it has support for a large
portion of CSS filters; however, opacity is used much more often than the rest of the filters.
This patch adds a simple shader for opacity effects which bypasses the extra overhead in the
brush_blend shader.

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

cbrewster created this revision.Jan 12 2020, 1:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2020, 1:00 AM
phab-bot requested review of this revision.Jan 12 2020, 1:00 AM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: Restricted Project.
nical accepted this revision.Jan 13 2020, 7:57 AM
This revision is now accepted and ready to land.Jan 13 2020, 7:57 AM
lobot added a subscriber: lobot.

Check-in Needed handled, landing queued.