Index: samplecode/SampleBigBlur.cpp |
diff --git a/samplecode/SampleBigBlur.cpp b/samplecode/SampleBigBlur.cpp |
index 800ae24fbd624494bf44996cdccb064687946e21..cb7a419a80e647b086e73d7df192bd6de2ba1d9c 100644 |
--- a/samplecode/SampleBigBlur.cpp |
+++ b/samplecode/SampleBigBlur.cpp |
@@ -29,11 +29,10 @@ protected: |
SkPaint paint; |
canvas->save(); |
paint.setColor(SK_ColorBLUE); |
- SkMaskFilter* mf = SkBlurMaskFilter::Create( |
+ paint.setMaskFilter(SkBlurMaskFilter::Make( |
kNormal_SkBlurStyle, |
SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(128)), |
- SkBlurMaskFilter::kHighQuality_BlurFlag); |
- paint.setMaskFilter(mf)->unref(); |
+ SkBlurMaskFilter::kHighQuality_BlurFlag)); |
canvas->translate(200, 200); |
canvas->drawCircle(100, 100, 200, paint); |
canvas->restore(); |