Clean up shadow assert.
authorJim Van Verth <jvanverth@google.com>
Wed, 10 May 2017 14:04:17 +0000 (10:04 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 10 May 2017 14:51:37 +0000 (14:51 +0000)
commit05fd8cf08970763832d6690ca1823168dd6f071f
tree3aaace849f0702e04ad5026309456b87c7d5aa6e
parentac70f84e7f4fc9ddd344753b92cdf4be540d32bf
Clean up shadow assert.

When drawing an analytic rrect shadow, the mask filter could pass
the devRect into the drawOp. If we have a small scale that could
make the radii less than SK_ScalarNearlyZero. We might also have
a rect that we outset by a value less than SK_ScalarNearlyZero to
the penumbra border. So the best we can check is that the the two
radii are equal.

Bug: skia:6608
Change-Id: I8bdafe089b302fbc5c9042ff30798d3688e9e781
Reviewed-on: https://skia-review.googlesource.com/16364
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
src/gpu/ops/GrShadowRRectOp.cpp