aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-02-01 12:23:25 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-01 20:14:18 +0000
commit0bd699e497819344083df4715928a54a597cd630 (patch)
tree27ab41441f650a3912d9bf21d7e7937e4950721b /gn
parent44f80a24f010e99de773dad89fb9f50100898969 (diff)
Add a GM for SkShadowUtils and fix a few issues.
1) Transform the path center to device space before computing the shadow offset. 2) Modulate the shadow color by the color filter's output color. 3) Make the scale of path points in the spot tessellator be relative to the path centroid. 4) Clamp the shadow alphas at 1. Change-Id: I480476df79b959f11c1eca0ba2a49a134d355cbb Reviewed-on: https://skia-review.googlesource.com/7860 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'gn')
-rw-r--r--gn/gm.gni1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn/gm.gni b/gn/gm.gni
index 4b6dbf90cd..38e50b57ec 100644
--- a/gn/gm.gni
+++ b/gn/gm.gni
@@ -247,6 +247,7 @@ gm_sources = [
"$_gm/shadertext3.cpp",
"$_gm/shadowmaps.cpp",
"$_gm/shadows.cpp",
+ "$_gm/shadowutils.cpp",
"$_gm/shallowgradient.cpp",
"$_gm/shapes.cpp",
"$_gm/showmiplevels.cpp",