Index: gm/resizeimagefilter.cpp |
diff --git a/gm/resizeimagefilter.cpp b/gm/resizeimagefilter.cpp |
index 9a684a28597252c8722652ac63c638a99ae65a98..2236b76b3e4a38aa393b3416c010d77ab16ed410 100644 |
--- a/gm/resizeimagefilter.cpp |
+++ b/gm/resizeimagefilter.cpp |
@@ -97,11 +97,11 @@ protected: |
ovalRect.inset(SkIntToScalar(2)/3, SkIntToScalar(2)/3); |
surfaceCanvas->drawOval(ovalRect, paint); |
} |
- SkAutoTUnref<SkImage> image(surface->newImageSnapshot()); |
+ sk_sp<SkImage> image(surface->makeImageSnapshot()); |
SkRect inRect = SkRect::MakeXYWH(-4, -4, 20, 20); |
SkRect outRect = SkRect::MakeXYWH(-24, -24, 120, 120); |
SkAutoTUnref<SkImageFilter> source( |
- SkImageSource::Create(image, inRect, outRect, kHigh_SkFilterQuality)); |
+ SkImageSource::Create(image.get(), inRect, outRect, kHigh_SkFilterQuality)); |
canvas->translate(srcRect.width() + SkIntToScalar(10), 0); |
draw(canvas, |
srcRect, |