skia2/modules
Florin Malita 866e262a21 [skottie] Fix gradient ramp for non-solid layers
Two issues:

  1) Empirically (per AE's model), only solid layers transform the effect space.
     All other layer types implement their effects ignoring the layer xform.

  2) Due to the effect deferral mechanism in sksg, shader effects are
     sometimes applied with a different transform than intended.

To address #1, tweak the layer builder logic to attach the effects
before/after the transform node, depending on the layer type.

For #2, track the CTM active when the shader effect is attached and undo
any intervening transformations via a local matrix when the shader is
actually applied to SkPaint.

Change-Id: I29b5a4df3b223e7da9dfc36b0d7d40055d192ac0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/205922
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
2019-04-03 20:46:35 +00:00
..
canvaskit Move SkTileModes to top level 2019-04-03 00:18:35 +00:00
particles Remove SkScalarSinCos 2019-04-02 15:46:57 +00:00
pathkit [pathkit/canvaskit] Address race when uploading results 2019-03-12 21:45:04 +00:00
skottie [skottie] Fix gradient ramp for non-solid layers 2019-04-03 20:46:35 +00:00
sksg [skottie] Fix gradient ramp for non-solid layers 2019-04-03 20:46:35 +00:00
skshaper Clean up shaper handler. 2019-04-02 14:56:26 +00:00