From 40f5c55358900e855dbd39e56aee1b2aa0a7a3ff Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Thu, 9 Nov 2017 10:51:11 -0500 Subject: [PATCH] Remove dead code for the incorrect handling of small radii blurs. Change-Id: I06be8fb092ee50df7be89c51d512791278bc4e27 Reviewed-on: https://skia-review.googlesource.com/69280 Reviewed-by: Florin Malita Commit-Queue: Herb Derby --- src/core/SkMaskBlurFilter.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/core/SkMaskBlurFilter.cpp b/src/core/SkMaskBlurFilter.cpp index 7cf1dab9f6..282f395792 100644 --- a/src/core/SkMaskBlurFilter.cpp +++ b/src/core/SkMaskBlurFilter.cpp @@ -16,11 +16,7 @@ static const double kPi = 3.14159265358979323846264338327950288; -#if defined(SK_SUPPORT_LEGACY_USE_GAUSS_FOR_SMALL_RADII) - static constexpr double kSmallSigma = 0.0; -#else - static constexpr double kSmallSigma = 2.0; -#endif +static constexpr double kSmallSigma = 2.0; class BlurScanInterface { public: @@ -350,11 +346,7 @@ public: auto window3 = window2 * window; auto divisor = (window & 1) == 1 ? window3 : window3 + window2; - #if defined(SK_LEGACY_SUPPORT_INTEGER_SMALL_RADII) - fWeight = (static_cast(1) << 32) / divisor; - #else - fWeight = static_cast(round(1.0 / divisor * (1ull << 32))); - #endif + fWeight = static_cast(round(1.0 / divisor * (1ull << 32))); } size_t bufferSize() const override { return fPass0Size + fPass1Size + fPass2Size; }