skia2/modules/skottie
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
..
fuzz sk_tool_utils -> ToolUtils, and git clang-format 2019-03-20 18:05:42 +00:00
gm SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
include [skottie] Layer blend mode support 2019-02-25 15:48:07 +00:00
src [skottie] Fix gradient ramp for non-solid layers 2019-04-03 20:46:35 +00:00
tests [skottie] Fix gradient ramp for non-solid layers 2019-04-03 20:46:35 +00:00
utils [skottie] Expose composition markers to embedders 2018-12-01 04:44:03 +00:00
BUILD.gn de-Sk tools/font, and git clang-format 2019-03-20 17:36:52 +00:00
skottie.gni [skottie] Relocate text shaping utils to separate compilation unit 2019-03-26 20:34:02 +00:00