Index: src/effects/SkBlurMaskFilter.cpp |
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp |
index 38b5313be34f246489dc6848cadcbf697df7b24e..9e0315f2b7471829037429ff537562bbda92a19e 100644 |
--- a/src/effects/SkBlurMaskFilter.cpp |
+++ b/src/effects/SkBlurMaskFilter.cpp |
@@ -12,6 +12,7 @@ |
#include "SkWriteBuffer.h" |
#include "SkMaskFilter.h" |
#include "SkRRect.h" |
+#include "SkRTConf.h" |
#include "SkStringUtils.h" |
#include "SkStrokeRec.h" |
@@ -303,10 +304,9 @@ |
} |
#ifdef SK_IGNORE_FAST_RRECT_BLUR |
- // Use the faster analytic blur approach for ninepatch round rects |
- static const bool c_analyticBlurRRect{false}; |
+SK_CONF_DECLARE(bool, c_analyticBlurRRect, "mask.filter.blur.analyticblurrrect", false, "Use the faster analytic blur approach for ninepatch rects"); |
#else |
- static const bool c_analyticBlurRRect{true}; |
+SK_CONF_DECLARE(bool, c_analyticBlurRRect, "mask.filter.blur.analyticblurrrect", true, "Use the faster analytic blur approach for ninepatch round rects"); |
#endif |
SkMaskFilter::FilterReturn |
@@ -443,8 +443,7 @@ |
return kTrue_FilterReturn; |
} |
-// Use the faster analytic blur approach for ninepatch rects |
-static const bool c_analyticBlurNinepatch{true}; |
+SK_CONF_DECLARE(bool, c_analyticBlurNinepatch, "mask.filter.analyticNinePatch", true, "Use the faster analytic blur approach for ninepatch rects"); |
SkMaskFilter::FilterReturn |
SkBlurMaskFilterImpl::filterRectsToNine(const SkRect rects[], int count, |