Index: gm/imagefilters.cpp |
diff --git a/gm/imagefilters.cpp b/gm/imagefilters.cpp |
index 21ce0fef9709d25d678bcaf249b4700713dd6965..ab9ddf4098afe55d9246129c1e583c1850f304e4 100644 |
--- a/gm/imagefilters.cpp |
+++ b/gm/imagefilters.cpp |
@@ -68,9 +68,9 @@ DEF_SIMPLE_GM(imagefilters_xfermodes, canvas, 480, 480) { |
static sk_sp<SkImage> make_image(SkCanvas* canvas) { |
const SkImageInfo info = SkImageInfo::MakeN32Premul(100, 100); |
- SkAutoTUnref<SkSurface> surface(canvas->newSurface(info)); |
+ auto surface(canvas->makeSurface(info)); |
if (!surface) { |
- surface.reset(SkSurface::NewRaster(info)); |
+ surface = SkSurface::MakeRaster(info); |
} |
surface->getCanvas()->drawRect(SkRect::MakeXYWH(25, 25, 50, 50), SkPaint()); |
return surface->makeImageSnapshot(); |