skia2/modules/sksg/include
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
..
SkSGClipEffect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGColorFilter.h Reland "[skottie] Add tritone layer effect support" 2019-02-22 23:11:02 +00:00
SkSGDraw.h [sksg] Refactor gradient implementation 2019-04-01 18:43:43 +00:00
SkSGEffectNode.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGGeometryNode.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGGeometryTransform.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGGradient.h Use SkTileMode instead of nested enum 2019-04-03 15:24:18 +00:00
SkSGGroup.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGImage.h [skottie] Use kMedium_SkFilterQuality for image filtering 2019-03-13 16:18:51 +00:00
SkSGInvalidationController.h Move SkNoncopyable to include/private. 2018-07-17 21:39:51 +00:00
SkSGMaskEffect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGMerge.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGNode.h [sksg] Fix image filter content inval rect tracking 2019-02-10 21:43:20 +00:00
SkSGOpacityEffect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGPaint.h [sksg] Refactor gradient implementation 2019-04-01 18:43:43 +00:00
SkSGPath.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGPlane.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGRect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGRenderEffect.h [skottie] Initial gradient ramp effect support 2019-04-02 14:24:56 +00:00
SkSGRenderNode.h [skottie] Fix gradient ramp for non-solid layers 2019-04-03 20:46:35 +00:00
SkSGRoundEffect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGScene.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGText.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGTransform.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00
SkSGTrimEffect.h [sksg] Hit-testing API 2019-02-12 15:01:05 +00:00