aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skhello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/skhello.cpp')
-rw-r--r--tools/skhello.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index 5614a56f5d..61502a6fb8 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;