diff options
author | Mike Reed <reed@google.com> | 2017-03-14 14:10:54 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-14 18:40:40 +0000 |
commit | bdce9c2d73e3661f8061f73e35b74ba35d98e5ff (patch) | |
tree | 09390b3ba1baf99944c8e260c63dcd9ddf5aea65 /include | |
parent | 8199d94c0812a05320064f5f864b4208ffb25dba (diff) |
vertices to/from data
precursor to enabling serialization in pictures
BUG=skia:6366
Change-Id: Iba89aa98f389b3281e7705d041e3337e89071f03
Reviewed-on: https://skia-review.googlesource.com/9680
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkVertices.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkVertices.h b/include/core/SkVertices.h index 2e4f09ff8c..5dbdefaa3c 100644 --- a/include/core/SkVertices.h +++ b/include/core/SkVertices.h @@ -10,6 +10,7 @@ #include "SkCanvas.h" #include "SkColor.h" +#include "SkData.h" #include "SkPoint.h" #include "SkRect.h" #include "SkRefCnt.h" @@ -91,6 +92,10 @@ public: const SkRect& bounds() const { return fBounds; } + + static sk_sp<SkVertices> Decode(const void*, size_t); + sk_sp<SkData> encode() const; + private: SkVertices() {} |