Index: samplecode/SampleAnimBlur.cpp |
diff --git a/samplecode/SampleAnimBlur.cpp b/samplecode/SampleAnimBlur.cpp |
index 98a3560fe9e9f76ed012ca629642123b8ee5408a..5330fdfa71788585a3257ecc86d30c6f3d593078 100644 |
--- a/samplecode/SampleAnimBlur.cpp |
+++ b/samplecode/SampleAnimBlur.cpp |
@@ -46,12 +46,10 @@ protected: |
SkRandom random; |
for (size_t i = 0; i < SK_ARRAY_COUNT(gStyles); ++i) { |
- SkMaskFilter* mf = SkBlurMaskFilter::Create( |
- gStyles[i], |
- fBlurSigma, |
- SkBlurMaskFilter::kHighQuality_BlurFlag); |
SkPaint paint; |
- SkSafeUnref(paint.setMaskFilter(mf)); |
+ paint.setMaskFilter(SkBlurMaskFilter::Make(gStyles[i], |
+ fBlurSigma, |
+ SkBlurMaskFilter::kHighQuality_BlurFlag)); |
paint.setColor(random.nextU() | 0xff000000); |
canvas->drawCircle(200 * SK_Scalar1 + 400 * (i % 2) * SK_Scalar1, |
200 * SK_Scalar1 + i / 2 * 400 * SK_Scalar1, |