Fix spot shadow inset.
authorJim Van Verth <jvanverth@google.com>
Thu, 4 May 2017 13:51:29 +0000 (09:51 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 4 May 2017 14:21:08 +0000 (14:21 +0000)
commit65f33fcbbadde807667a0c7ce451ad95c31c52ea
tree1e93bd95f21f1086379fdf04d46ac8313b8f0bac
parent40c0f249e60dbca7686952de5a459a8dd415a3be
Fix spot shadow inset.

This handles negative values in the spot translation, and produces
a tight fit for rrects and circles.

Change-Id: Id2536347dca98f06f57b31518390037b86fd8a9e
Reviewed-on: https://skia-review.googlesource.com/15248
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
src/effects/shadows/SkAmbientShadowMaskFilter.cpp
src/effects/shadows/SkSpotShadowMaskFilter.cpp