From 8f7dc9f6caabe798723d9f17aff371121369b846 Mon Sep 17 00:00:00 2001 From: Jim Van Verth Date: Thu, 20 Apr 2017 15:48:37 -0400 Subject: 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 Reviewed-by: Robert Phillips Commit-Queue: Jim Van Verth --- include/core/SkRRect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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(); } -- cgit v1.2.3