Index: gm/textbloblooper.cpp |
diff --git a/gm/textbloblooper.cpp b/gm/textbloblooper.cpp |
index ac8b7c9759580070317b54cd81eb0f05fd20a586..066546ee2bc5b4dc90c323a41684f702b419cdb4 100644 |
--- a/gm/textbloblooper.cpp |
+++ b/gm/textbloblooper.cpp |
@@ -61,9 +61,8 @@ struct LooperSettings { |
}; |
static void mask_filter(SkPaint* paint) { |
- SkMaskFilter* mf = SkBlurMaskFilter::Create(kNormal_SkBlurStyle, |
- SkBlurMask::ConvertRadiusToSigma(3.f)); |
- paint->setMaskFilter(mf)->unref(); |
+ paint->setMaskFilter(SkBlurMaskFilter::Make(kNormal_SkBlurStyle, |
+ SkBlurMask::ConvertRadiusToSigma(3.f))); |
} |
static sk_sp<SkPathEffect> make_tile_effect() { |