Index: src/effects/SkBlurMaskFilter.cpp |
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp |
index c044333efb289fbd7efe8871998cc139b8ac60fa..cbaed9b66903a22ba7b0f906c47ddb3fc560a0c5 100644 |
--- a/src/effects/SkBlurMaskFilter.cpp |
+++ b/src/effects/SkBlurMaskFilter.cpp |
@@ -1034,8 +1034,8 @@ bool SkBlurMaskFilterImpl::directFilterMaskGPU(GrTextureProvider* texProvider, |
SkRect rect; |
if (path.isRect(&rect)) { |
- int pad = SkScalarCeilToInt(6*xformedSigma)/2; |
- rect.outset(SkIntToScalar(pad), SkIntToScalar(pad)); |
+ SkScalar pad = 3.0f * xformedSigma; |
+ rect.outset(pad, pad); |
fp = GrRectBlurEffect::Make(texProvider, rect, xformedSigma); |
} else if (path.isOval(&rect) && SkScalarNearlyEqual(rect.width(), rect.height())) { |