Index: gm/imageblur2.cpp |
diff --git a/gm/imageblur2.cpp b/gm/imageblur2.cpp |
index 2b95c02ab10078c137290b15be2deb1b8693808a..c6835d8407f3a036806a58bd78f4a803cbc5889f 100644 |
--- a/gm/imageblur2.cpp |
+++ b/gm/imageblur2.cpp |
@@ -58,8 +58,7 @@ protected: |
SkScalar sigmaY = kBlurSigmas[y]; |
SkPaint paint; |
- SkAutoTUnref<SkImageFilter> blur(SkBlurImageFilter::Create(sigmaX, sigmaY)); |
- paint.setImageFilter(blur); |
+ paint.setImageFilter(SkBlurImageFilter::Make(sigmaX, sigmaY, nullptr)); |
canvas->saveLayer(nullptr, &paint); |
SkRandom rand; |
@@ -89,7 +88,6 @@ private: |
////////////////////////////////////////////////////////////////////////////// |
-static GM* MyFactory(void*) { return new BlurImageFilter; } |
-static GMRegistry reg(MyFactory); |
+DEF_GM(return new BlurImageFilter;) |
} |