Go to file
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
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench SkMD5 returns digest 2019-04-03 17:52:22 +00:00
bin tools: bin/sync just alias for git-sync-deps now 2019-02-22 20:05:05 +00:00
dm Fix the GLSL persistent cache (and add a config to test it) 2019-04-03 18:05:22 +00:00
docker Include wasm debugger in continuous build part 2 2019-04-01 19:51:43 +00:00
docs/examples Use SkTileMode instead of nested enum 2019-04-03 15:24:18 +00:00
example Use SkTileMode instead of nested enum 2019-04-03 15:24:18 +00:00
experimental Use SkTileMode instead of nested enum 2019-04-03 15:24:18 +00:00
fuzz Use SkTileMode instead of nested enum 2019-04-03 15:24:18 +00:00
gm GM for SkOverdrawCanvas 2019-04-03 20:28:54 +00:00
gn GM for SkOverdrawCanvas 2019-04-03 20:28:54 +00:00
include Add a cap to allow coverage counting or not 2019-04-03 19:39:24 +00:00
infra Add a cap to allow coverage counting or not 2019-04-03 19:39:24 +00:00
modules [skottie] Fix gradient ramp for non-solid layers 2019-04-03 20:46:35 +00:00
platform_tools SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
resources Add planet emoji font. 2019-03-19 17:49:22 +00:00
samplecode Use SkTileMode instead of nested enum 2019-04-03 15:24:18 +00:00
site Remove bookmaker sources and data files 2019-03-25 18:56:29 +00:00
src fix SkSL constant comparisons involving negated vectors 2019-04-03 20:34:25 +00:00
tests Track the number of resources that would become purgeable after flush 2019-04-03 18:06:08 +00:00
third_party Roll skia/third_party/skcms 10ed3a8a5eec..99740cdf2835 (1 commits) 2019-03-21 13:45:09 +00:00
tools Add a cap to allow coverage counting or not 2019-04-03 19:39:24 +00:00
.clang-format restore .clang-format 2019-03-21 15:52:32 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +00:00
.gitignore Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS fix metal build errors with preprocessor definitions 2019-03-28 18:47:37 +00:00
BUILD.gn Reland "Remove the NullGL interface (and associated test context)" 2019-04-03 16:38:10 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll ../src b3f3a36219a1..38969ffb5d49 (477 commits) 2019-04-03 13:21:28 +00:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py add mtklein to api approvals 2019-04-02 15:16:56 +00:00
public.bzl buildifier public.bzl 2019-03-27 19:00:04 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt [infra] Marker for IntelBayTrail BIOS update. 2018-09-17 16:47:35 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.