Combine the ambient and spot alphas into the base color
authorJim Van Verth <jvanverth@google.com>
Thu, 4 May 2017 13:58:17 +0000 (09:58 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 4 May 2017 14:28:28 +0000 (14:28 +0000)
commit060d9820364b0cf09c7eb3bda449f24c3dcba2e2
treec839d2c3129f90c281d3b0f2c642cf160675b056
parentdb711c982bfaa805d2de5a253c55a680c30189e0
Combine the ambient and spot alphas into the base color
for geometric shadows.

This matches the analytic shadow approach better, and
is color space invariant.
Also includes cleanup in SampleAndroidShadows.

Bug: skia:6546
Change-Id: I7a7cd060420dae741f967334c8b19542a14f0bcf
Reviewed-on: https://skia-review.googlesource.com/15228
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
include/private/SkShadowFlags.h
samplecode/SampleAndroidShadows.cpp
src/gpu/effects/GrBlurredEdgeFragmentProcessor.cpp
src/utils/SkShadowTessellator.cpp
src/utils/SkShadowTessellator.h
src/utils/SkShadowUtils.cpp
tests/ShadowUtilsTest.cpp