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(); |