diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-04-20 15:48:37 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-21 15:23:53 +0000 |
commit | 8f7dc9f6caabe798723d9f17aff371121369b846 (patch) | |
tree | 5062e5b6d635476d519ff6e4dd3dfef39de0ae79 /include/core/SkRRect.h | |
parent | 5e958e9291f53b81045f776a2af3a871381dd5fb (diff) |
Circular shadow fixes for Flutter.
* Fix spot shadow placement for SkSpotShadowMaskFilter.
* Make sure we don't try to render an oval as a plain RRect
due to floating point error.
* Use fast path for uncached circles.
* Make sure ShadowMaskFilters can handle near-circles.
Change-Id: Ia9967a00a6e1c980a1c0a7ba8248f09fde61a3b7
Reviewed-on: https://skia-review.googlesource.com/13969
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'include/core/SkRRect.h')
-rw-r--r-- | include/core/SkRRect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h index 3b691aab1b..4b7a33e43f 100644 --- a/include/core/SkRRect.h +++ b/include/core/SkRRect.h @@ -110,7 +110,7 @@ public: inline bool isNinePatch() const { return kNinePatch_Type == this->getType(); } inline bool isComplex() const { return kComplex_Type == this->getType(); } - bool allCornersCircular() const; + bool allCornersCircular(SkScalar tolerance = SK_ScalarNearlyZero) const; SkScalar width() const { return fRect.width(); } SkScalar height() const { return fRect.height(); } |