Use stroked rrects for Android shadow sample
authorjvanverth <jvanverth@google.com>
Mon, 29 Aug 2016 14:17:47 +0000 (07:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Aug 2016 14:17:47 +0000 (07:17 -0700)
commita4f1af8f9778462184c2bef91de1b1827568c08b
tree15431f3725abb5c2d3ed87b345736c66d382c276
parenta28e263d42760370c9ff0b269b31a78d6701fb44
Use stroked rrects for Android shadow sample

Changes the Android shadow sample to use stroked roundrects when
we can (mainly if stroked geometry area < fill geometry area).

Also changes the setup for the overstroke geometry so that it computes
the correct distance to the outer edge.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2283003003

Review-Url: https://codereview.chromium.org/2283003003
samplecode/SampleAndroidShadows.cpp
src/effects/SkGaussianEdgeShader.cpp
src/gpu/GrOvalRenderer.cpp