From 9ce9d6772df650ceb0511f275e1a83dffa78ff72 Mon Sep 17 00:00:00 2001 From: reed Date: Thu, 17 Mar 2016 10:51:11 -0700 Subject: update callsites for Make image factories not forced yet, as we still have the build-guard. waiting on chrome CL BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1810813003 TBR= Review URL: https://codereview.chromium.org/1810813003 --- tools/skhello.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/skhello.cpp') 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 surface(SkSurface::NewRasterN32Premul(w, h, &props)); doDraw(surface->getCanvas(), paint, text); - SkAutoTUnref image(surface->newImageSnapshot()); + sk_sp image(surface->makeImageSnapshot()); SkAutoDataUnref data(image->encode()); if (nullptr == data.get()) { return false; -- cgit v1.2.3