gecko-dev/gfx/wr/webrender_build
Nicolas Silva 9b31d6c49b Bug 1702228 - Cache linear gradients by default. r=gw
This patch breaks linear gradients into two primitives:
 - LinearGradient is always rendered via the brush shader. It is only used with SWGL.
 - CachedLinearGradient is always rendered via a cached render task and the brush image shader. Its implementation is very similar to conic and radial gradients, with the addition of a fast-path for axis aligned gradients with two stops.

In addition the following changes are made:
 - The gradient fast path is simpler (only deals with two gradient stops).
 - Decomposing axis-aligned gradients into parts eligible for the fast path happens during scene building instead of frame building.

Differential Revision: https://phabricator.services.mozilla.com/D112018
2021-04-22 10:34:54 +00:00
..
src Bug 1702228 - Cache linear gradients by default. r=gw 2021-04-22 10:34:54 +00:00
Cargo.toml Bug 1604615 - Optimize webrender shaders at build time. r=gw 2020-04-21 10:32:03 +00:00