Index: samplecode/SampleSlides.cpp |
diff --git a/samplecode/SampleSlides.cpp b/samplecode/SampleSlides.cpp |
index b4ebb3c30d9858240de37247189d195cfe19d94d..4748a766a06d8460112ce2a1b10ff4d308a796a5 100644 |
--- a/samplecode/SampleSlides.cpp |
+++ b/samplecode/SampleSlides.cpp |
@@ -462,8 +462,8 @@ static void mesh_slide(SkCanvas* canvas) { |
static void r0(SkLayerRasterizer::Builder* rastBuilder, SkPaint& p) |
{ |
- p.setMaskFilter(SkBlurMaskFilter::Create(kNormal_SkBlurStyle, |
- SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(3))))->unref(); |
+ p.setMaskFilter(SkBlurMaskFilter::Make(kNormal_SkBlurStyle, |
+ SkBlurMask::ConvertRadiusToSigma(3))); |
rastBuilder->addLayer(p, SkIntToScalar(3), SkIntToScalar(3)); |
p.setMaskFilter(nullptr); |