Index: gm/drawfilter.cpp |
diff --git a/gm/drawfilter.cpp b/gm/drawfilter.cpp |
index d17eb4f52fcfc02220daaae537fb31dd4fd50a24..33e1d0085352125cd77a3af44d86949965a1ee93 100644 |
--- a/gm/drawfilter.cpp |
+++ b/gm/drawfilter.cpp |
@@ -33,7 +33,7 @@ public: |
} |
class DrawFilterGM : public skiagm::GM { |
- SkAutoTUnref<SkMaskFilter> fBlur; |
+ sk_sp<SkMaskFilter> fBlur; |
protected: |
SkISize onISize() override { |
@@ -45,15 +45,15 @@ protected: |
} |
void onOnceBeforeDraw() override { |
- fBlur.reset(SkBlurMaskFilter::Create(kNormal_SkBlurStyle, |
+ fBlur = SkBlurMaskFilter::Make(kNormal_SkBlurStyle, |
SkBlurMask::ConvertRadiusToSigma(10.0f), |
- kLow_SkBlurQuality)); |
+ kLow_SkBlurQuality); |
} |
void onDraw(SkCanvas* canvas) override { |
SkPaint p; |
p.setColor(SK_ColorBLUE); |
- p.setMaskFilter(fBlur.get()); |
+ p.setMaskFilter(fBlur); |
SkRect r = { 20, 20, 100, 100 }; |
canvas->setDrawFilter(nullptr); |
canvas->drawRect(r, p); |