Spot shadow cleanup and optimization
authorJim Van Verth <jvanverth@google.com>
Thu, 2 Feb 2017 18:06:31 +0000 (13:06 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 2 Feb 2017 18:50:49 +0000 (18:50 +0000)
commit47784c18adc20d1bfefebd00c3ee98c669d79b4d
treeeacb7ad81752b32ee222523af7f0edbd3882baaa
parentcae3a4c8ab7082df009a1e340f10292350e0c763
Spot shadow cleanup and optimization

Fixes clip polygon and centroid calculation.
Clips interior umbra region against original path.

BUG=skia:6119

Change-Id: I37a740ae004c38b75405e05158d92cf9fd954eda
Reviewed-on: https://skia-review.googlesource.com/7823
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
src/utils/SkShadowTessellator.cpp