Index: samplecode/SampleLayers.cpp |
diff --git a/samplecode/SampleLayers.cpp b/samplecode/SampleLayers.cpp |
index 8c2724ce95e4464bd8b17f19e28d82ca180abff5..194f0a70a92505882f01beab8633c8cf0a5c9cf7 100644 |
--- a/samplecode/SampleLayers.cpp |
+++ b/samplecode/SampleLayers.cpp |
@@ -245,13 +245,13 @@ class BackdropView : public SampleView { |
SkPoint fCenter; |
SkScalar fAngle; |
sk_sp<SkImage> fImage; |
- SkAutoTUnref<SkImageFilter> fFilter; |
+ sk_sp<SkImageFilter> fFilter; |
public: |
BackdropView() { |
fCenter.set(200, 150); |
fAngle = 0; |
fImage = GetResourceAsImage("mandrill_512.png"); |
- fFilter.reset(SkDilateImageFilter::Create(8, 8)); |
+ fFilter = SkDilateImageFilter::Make(8, 8, nullptr); |
} |
protected: |
@@ -281,7 +281,7 @@ protected: |
SkPaint paint; |
paint.setAlpha(0xCC); |
- canvas->saveLayer({ &bounds, &paint, fFilter, 0 }); |
+ canvas->saveLayer({ &bounds, &paint, fFilter.get(), 0 }); |
canvas->restore(); |
} |