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

Unified Diff: src/c/sk_surface.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 | « samplecode/SampleTextureDomain.cpp ('k') | src/core/SkPictureImageGenerator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/c/sk_surface.cpp
diff --git a/src/c/sk_surface.cpp b/src/c/sk_surface.cpp
index 8dd7a6c503c5884b705eeba5573da88b4db21cde..79036f75fe88a8f44092af2b65a214f5f4d7a002 100644
--- a/src/c/sk_surface.cpp
+++ b/src/c/sk_surface.cpp
@@ -463,7 +463,7 @@ sk_canvas_t* sk_surface_get_canvas(sk_surface_t* csurf) {
sk_image_t* sk_surface_new_image_snapshot(sk_surface_t* csurf) {
SkSurface* surf = (SkSurface*)csurf;
- return (sk_image_t*)surf->newImageSnapshot();
+ return (sk_image_t*)surf->makeImageSnapshot().release();
}
///////////////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « samplecode/SampleTextureDomain.cpp ('k') | src/core/SkPictureImageGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698