diff options
author | Mike Reed <reed@google.com> | 2017-03-14 21:05:17 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-15 01:32:38 +0000 |
commit | 9a8065d34dd090837c2a05bc60533fcc6268e6bb (patch) | |
tree | 1159fe5ece68e428aaf6d528de38825728d5245c /include | |
parent | 64b974836a594c4f14384ded399ff09e96160215 (diff) |
add uniqueID
BUG=skia:6366
Change-Id: Ie3215a392040be645524a2294d824d953ba3a1b6
Reviewed-on: https://skia-review.googlesource.com/9703
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
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; |