Skip mix-blend modes when we're blending on top of transparency
Categories
(Core :: Graphics: WebRender, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | fixed |
People
(Reporter: mattwoodrow, Assigned: mattwoodrow)
References
Details
Attachments
(2 files)
From the formula at https://drafts.fxtf.org/compositing-1/#generalformula
If the backdrop alpha is 0 (as it will be if the mix-blend mode container is the first primitive in a stacking context), then the blend mode parameter gets multiplied by 0, and no longer matters.
We can do less work in some cases because of this.
Hoving over client logos on singlesprout.com GPU time goes from 2ms -> 1.4ms on my machine with this.
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 1•7 years ago
|
||
Comment 3•7 years ago
|
||
Backed out for wrench bustages on canvas.yaml.
Backout link: https://hg.mozilla.org/integration/autoland/rev/fa658b3963898dd0c8122092174a7266ca19027b
Push link: https://hg.mozilla.org/integration/autoland/rev/869fbaef1042f1872c6b8245c0edf10ad57a97c2
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=225163555&repo=autoland&lineNumber=2603
| Assignee | ||
Comment 4•7 years ago
|
||
Depends on D18157
| Assignee | ||
Updated•7 years ago
|
Comment 6•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1f1e882ed243
https://hg.mozilla.org/mozilla-central/rev/4224ec9c27d3
Comment 7•7 years ago
|
||
This broke some Servo tests: https://github.com/servo/webrender/issues/3594
Description
•