Update SampleAndroidShadows to use algorithm closer to Android OpenGL
authorjvanverth <jvanverth@google.com>
Mon, 12 Sep 2016 14:51:04 +0000 (07:51 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 12 Sep 2016 14:51:05 +0000 (07:51 -0700)
commitd99858ad46ca2c3b5c38061be8b006b25d24c6e0
tree28272af51aae2efa6e8b825a71903b3bdbf8ed2f
parent2a78fca05416a13bad1b680b52d0ed4fc7f84762
Update SampleAndroidShadows to use algorithm closer to Android OpenGL

Includes:
* Update light position to be at a similar distance to Android OS
* Scale spot shadows correctly
* Compute stroke shapes and radii correctly
* Allow for larger blur radius for shadows

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2319003003
TBR=reed@google.com
NOTRY=true
NOTREECHECKS=true

Review-Url: https://codereview.chromium.org/2319003003
include/effects/SkGaussianEdgeShader.h
samplecode/SampleAndroidShadows.cpp
src/effects/SkGaussianEdgeShader.cpp