Index: gm/bleed.cpp |
diff --git a/gm/bleed.cpp b/gm/bleed.cpp |
index bd1a282227101b03f564bfe55fd02d67c40233d9..5a27b3972ef257f61209f3e48d31614243086e71 100644 |
--- a/gm/bleed.cpp |
+++ b/gm/bleed.cpp |
@@ -410,9 +410,8 @@ protected: |
SkPaint paint; |
paint.setFilterQuality(filter); |
- SkMaskFilter* mf = SkBlurMaskFilter::Create(kNormal_SkBlurStyle, |
- SkBlurMask::ConvertRadiusToSigma(3)); |
- paint.setMaskFilter(mf)->unref(); |
+ paint.setMaskFilter(SkBlurMaskFilter::Make(kNormal_SkBlurStyle, |
+ SkBlurMask::ConvertRadiusToSigma(3))); |
paint.setShader(fShader); |
paint.setColor(SK_ColorBLUE); |
paint.setAntiAlias(aa); |
@@ -429,9 +428,8 @@ protected: |
SkPaint paint; |
paint.setFilterQuality(filter); |
- SkMaskFilter* mf = SkBlurMaskFilter::Create(kOuter_SkBlurStyle, |
- SkBlurMask::ConvertRadiusToSigma(7)); |
- paint.setMaskFilter(mf)->unref(); |
+ paint.setMaskFilter(SkBlurMaskFilter::Make(kOuter_SkBlurStyle, |
+ SkBlurMask::ConvertRadiusToSigma(7))); |
paint.setShader(fShader); |
paint.setColor(SK_ColorBLUE); |
paint.setAntiAlias(aa); |