diff options
Diffstat (limited to 'include/core/SkPathRef.h')
-rw-r--r-- | include/core/SkPathRef.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/include/core/SkPathRef.h b/include/core/SkPathRef.h index d832944ec3..aea0a91275 100644 --- a/include/core/SkPathRef.h +++ b/include/core/SkPathRef.h @@ -227,6 +227,13 @@ public: */ uint32_t writeSize(); + /** + * Gets an ID that uniquely identifies the contents of the path ref. If two path refs have the + * same ID then they have the same verbs and points. However, two path refs may have the same + * contents but different genIDs. + */ + uint32_t genID() const; + private: enum SerializationOffsets { kIsFinite_SerializationShift = 25, // requires 1 bit @@ -380,14 +387,6 @@ private: return reinterpret_cast<intptr_t>(fVerbs) - reinterpret_cast<intptr_t>(fPoints); } - /** - * Gets an ID that uniquely identifies the contents of the path ref. If two path refs have the - * same ID then they have the same verbs and points. However, two path refs may have the same - * contents but different genIDs. Zero is reserved and means an ID has not yet been determined - * for the path ref. - */ - int32_t genID() const; - SkDEBUGCODE(void validate() const;) /** @@ -413,7 +412,7 @@ private: enum { kEmptyGenID = 1, // GenID reserved for path ref with zero points and zero verbs. }; - mutable int32_t fGenerationID; + mutable uint32_t fGenerationID; SkDEBUGCODE(int32_t fEditorsAttached;) // assert that only one editor in use at any time. typedef SkRefCnt INHERITED; |