Index: gm/drawatlascolor.cpp |
diff --git a/gm/drawatlascolor.cpp b/gm/drawatlascolor.cpp |
index 85a7a9473adad7f8a964655f12cc9428c8ff9382..e8fd23608cb9b279778bc06c216ad607db7aa58d 100644 |
--- a/gm/drawatlascolor.cpp |
+++ b/gm/drawatlascolor.cpp |
@@ -19,9 +19,9 @@ static sk_sp<SkImage> make_atlas(SkCanvas* caller, int atlasSize) { |
const int kBlockSize = atlasSize/2; |
SkImageInfo info = SkImageInfo::MakeN32Premul(atlasSize, atlasSize); |
- 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(); |