diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkVertices.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/core/SkVertices.h b/include/core/SkVertices.h index 5dbdefaa3c..af4e3bc960 100644 --- a/include/core/SkVertices.h +++ b/include/core/SkVertices.h @@ -74,6 +74,7 @@ public: SkCanvas::VertexMode mode() const { return fMode; } + uint32_t uniqueID() const { return fUniqueID; } int vertexCount() const { return fVertexCnt; } bool hasColors() const { return SkToBool(fColors); } bool hasTexCoords() const { return SkToBool(fTexs); } @@ -92,7 +93,6 @@ public: const SkRect& bounds() const { return fBounds; } - static sk_sp<SkVertices> Decode(const void*, size_t); sk_sp<SkData> encode() const; @@ -104,6 +104,7 @@ private: const SkColor* fColors; const uint16_t* fIndices; SkRect fBounds; + uint32_t fUniqueID; int fVertexCnt; int fIndexCnt; SkCanvas::VertexMode fMode; |