aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPath.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r--include/core/SkPath.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index b36fa65a6d..d0841fd250 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -12,6 +12,7 @@
#include "../private/SkPathRef.h"
class SkAutoPathBoundsUpdate;
+class SkData;
class SkRRect;
class SkWStream;
@@ -1090,6 +1091,12 @@ public:
* If buffer is NULL, it still returns the number of bytes.
*/
size_t writeToMemory(void* buffer) const;
+
+ /**
+ * Write the path to a buffer. Can recreate the path by calling readFromMemory().
+ */
+ sk_sp<SkData> serialize() const;
+
/**
* Initializes the path from the buffer
*