aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2017-11-09 10:51:11 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-09 16:23:24 +0000
commit40f5c55358900e855dbd39e56aee1b2aa0a7a3ff (patch)
treef4262b0dfe8251be1c461f58befe25d625b76bee
parentfc31be40cede4dfd5b06ecaffb551b06aea85693 (diff)
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 <fmalita@chromium.org> Commit-Queue: Herb Derby <herb@google.com>
-rw-r--r--src/core/SkMaskBlurFilter.cpp12
1 files 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<uint64_t>(1) << 32) / divisor;
- #else
- fWeight = static_cast<uint64_t>(round(1.0 / divisor * (1ull << 32)));
- #endif
+ fWeight = static_cast<uint64_t>(round(1.0 / divisor * (1ull << 32)));
}
size_t bufferSize() const override { return fPass0Size + fPass1Size + fPass2Size; }