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

Unified Diff: include/core/SkPictureRecorder.h

Issue 732653004: option to return drawable from recording (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: plumb pictlist down to layer hoister Created 6 years, 1 month 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
Index: include/core/SkPictureRecorder.h
diff --git a/include/core/SkPictureRecorder.h b/include/core/SkPictureRecorder.h
index 528472bc2231bf4611b380265f8a9d983714ca52..000331e36eb20916f0e75af6b14be2493fcf533d 100644
--- a/include/core/SkPictureRecorder.h
+++ b/include/core/SkPictureRecorder.h
@@ -19,6 +19,7 @@ namespace android {
#endif
class SkCanvas;
+class SkCanvasDrawable;
class SkPictureRecord;
class SkRecord;
class SkRecorder;
@@ -72,6 +73,8 @@ public:
*/
SkPicture* endRecording();
robertphillips 2014/11/24 15:42:02 // Is it too early for a comment ?
reed1 2014/11/24 17:10:48 Done.
+ SkCanvasDrawable* EXPERIMENTAL_endRecordingAsDrawable();
+
private:
void reset();
@@ -88,7 +91,7 @@ private:
SkRect fCullRect;
SkAutoTUnref<SkBBoxHierarchy> fBBH;
SkAutoTUnref<SkRecorder> fRecorder;
- SkAutoTDelete<SkRecord> fRecord;
+ SkAutoTUnref<SkRecord> fRecord;
typedef SkNoncopyable INHERITED;
};
« no previous file with comments | « include/core/SkPicture.h ('k') | samplecode/SampleArc.cpp » ('j') | samplecode/SampleArc.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698