Index: gm/perspshaders.cpp |
diff --git a/gm/perspshaders.cpp b/gm/perspshaders.cpp |
index b2ac3287f2dcfb6a13a87566c4bf8c7b32e1303c..2b09cc64e0ed95a4df2883e2139abcfedbbb2376 100644 |
--- a/gm/perspshaders.cpp |
+++ b/gm/perspshaders.cpp |
@@ -13,9 +13,9 @@ |
static sk_sp<SkImage> make_image(SkCanvas* origCanvas, int w, int h) { |
SkImageInfo info = SkImageInfo::MakeN32Premul(w, h); |
- SkAutoTUnref<SkSurface> surface(origCanvas->newSurface(info)); |
+ auto surface(origCanvas->makeSurface(info)); |
if (nullptr == surface) { |
- surface.reset(SkSurface::NewRaster(info)); |
+ surface = SkSurface::MakeRaster(info); |
} |
SkCanvas* canvas = surface->getCanvas(); |