Index: bench/BlurBench.cpp |
diff --git a/bench/BlurBench.cpp b/bench/BlurBench.cpp |
index 58f9e89ffaf9f3bb486a8771c0257c10e52a6c71..20afd4a2e571667d237c50feca7dbe32f6532c62 100644 |
--- a/bench/BlurBench.cpp |
+++ b/bench/BlurBench.cpp |
@@ -65,10 +65,9 @@ protected: |
r.offset(fRadius, fRadius); |
if (fRadius > 0) { |
- SkMaskFilter* mf = SkBlurMaskFilter::Create(fStyle, |
- SkBlurMask::ConvertRadiusToSigma(fRadius), |
- fFlags); |
- paint.setMaskFilter(mf)->unref(); |
+ paint.setMaskFilter(SkBlurMaskFilter::Make(fStyle, |
+ SkBlurMask::ConvertRadiusToSigma(fRadius), |
+ fFlags)); |
} |
canvas->drawOval(r, paint); |
} |