Index: gm/drawminibitmaprect.cpp |
diff --git a/gm/drawminibitmaprect.cpp b/gm/drawminibitmaprect.cpp |
index c494605daf37ce4437711a4bb9c336c6ecf08e59..f5164f78deb10de21802e3d5e97c466e63fcd726 100644 |
--- a/gm/drawminibitmaprect.cpp |
+++ b/gm/drawminibitmaprect.cpp |
@@ -15,9 +15,9 @@ |
static sk_sp<SkImage> makebm(SkCanvas* caller, int w, int h) { |
SkImageInfo info = SkImageInfo::MakeN32Premul(w, h); |
- SkAutoTUnref<SkSurface> surface(caller->newSurface(info)); |
+ auto surface(caller->makeSurface(info)); |
if (nullptr == surface) { |
- surface.reset(SkSurface::NewRaster(info)); |
+ surface = SkSurface::MakeRaster(info); |
} |
SkCanvas* canvas = surface->getCanvas(); |