Index: src/animator/SkDrawBlur.cpp |
diff --git a/src/animator/SkDrawBlur.cpp b/src/animator/SkDrawBlur.cpp |
index 5f388c9310f68becdd9f5d99593d27be8f17aa71..36d645286fda215db55005192caaa0ad52438357 100644 |
--- a/src/animator/SkDrawBlur.cpp |
+++ b/src/animator/SkDrawBlur.cpp |
@@ -22,11 +22,12 @@ DEFINE_GET_MEMBER(SkDrawBlur); |
SkDrawBlur::SkDrawBlur() |
: fSigma(-1) |
- , fBlurStyle(SkBlurMaskFilter::kNormal_BlurStyle) { |
+ , fBlurStyle(kNormal_SkBlurStyle) { |
} |
SkMaskFilter* SkDrawBlur::getMaskFilter() { |
- if (fSigma < 0) |
+ if (fSigma <= 0) { |
return NULL; |
- return SkBlurMaskFilter::Create((SkBlurMaskFilter::BlurStyle) fBlurStyle, fSigma); |
+ } |
+ return SkBlurMaskFilter::Create((SkBlurStyle)fBlurStyle, fSigma); |
} |