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
Cargo.toml