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

Unified Diff: src/core/SkDrawable.cpp

Issue 1811703002: return pictures as sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rely on RVO in picturerecorder 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 | « src/c/sk_surface.cpp ('k') | src/core/SkMiniRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkDrawable.cpp
diff --git a/src/core/SkDrawable.cpp b/src/core/SkDrawable.cpp
index 8fea38be34a46cf3f1ea820d558039b795195ff5..bf6d39cfca53f6bf73c43c6c60e94ded70661e84 100644
--- a/src/core/SkDrawable.cpp
+++ b/src/core/SkDrawable.cpp
@@ -81,5 +81,5 @@ SkPicture* SkDrawable::onNewPictureSnapshot() {
if (false) {
draw_bbox(canvas, bounds);
}
- return recorder.endRecording();
+ return recorder.finishRecordingAsPicture().release();
}
« no previous file with comments | « src/c/sk_surface.cpp ('k') | src/core/SkMiniRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698