Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: tools/skhello.cpp

Issue 1810813003: update callsites for Make image factories (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: start to take advantage of sk_sp drawImage Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/imgslice.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « tools/imgslice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698