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

Unified Diff: include/core/SkStream.h

Issue 2201323003: add pipecanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: no need for willSetMatrix Created 4 years, 3 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
Index: include/core/SkStream.h
diff --git a/include/core/SkStream.h b/include/core/SkStream.h
index 4bfaeda58793d7b25aa58319a52c8cc92503a14e..d25660ed9e3de50dd70c84932168b6b60bca04f3 100644
--- a/include/core/SkStream.h
+++ b/include/core/SkStream.h
@@ -409,6 +409,9 @@ public:
* calling unref() when they are finished with the data.
*/
SkData* copyToData() const;
+ sk_sp<SkData> makeData() const {
+ return sk_sp<SkData>(this->copyToData());
+ }
/** Reset, returning a reader stream with the current content. */
SkStreamAsset* detachAsStream();

Powered by Google App Engine
This is Rietveld 408576698