Index: tools/skhello.cpp |
diff --git a/tools/skhello.cpp b/tools/skhello.cpp |
index 5614a56f5d5d5c55684e51d093250c3e17054c3b..61502a6fb8236602c3dc80e7507e216411c582ab 100644 |
--- a/tools/skhello.cpp |
+++ b/tools/skhello.cpp |
@@ -37,7 +37,7 @@ static bool do_surface(int w, int h, const char path[], const char text[], |
SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(w, h, &props)); |
doDraw(surface->getCanvas(), paint, text); |
- SkAutoTUnref<SkImage> image(surface->newImageSnapshot()); |
+ sk_sp<SkImage> image(surface->makeImageSnapshot()); |
SkAutoDataUnref data(image->encode()); |
if (nullptr == data.get()) { |
return false; |