aboutsummaryrefslogtreecommitdiffstats
path: root/include/core
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-08-05 17:24:37 -0700
committerRomain Guy <romainguy@google.com>2010-08-05 17:24:37 -0700
commitfad89e5c108c0cf674a206cd133da011465ccd09 (patch)
tree44cbce74cb81e72f409fcfd2bfa8c4e5faf7b890 /include/core
parent90a1efbdde19ee56c33929592277871509c25893 (diff)
downloadexternal_skia-fad89e5c108c0cf674a206cd133da011465ccd09.zip
external_skia-fad89e5c108c0cf674a206cd133da011465ccd09.tar.gz
external_skia-fad89e5c108c0cf674a206cd133da011465ccd09.tar.bz2
Add a generation id to SkPath.
This can be used to know whether a path was modified. Change-Id: I3a839357de4305d29cb608eacbada371682a5578
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkPath.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index 3afea09..eb5ff6d 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -571,6 +571,8 @@ public:
*/
void subdivide(SkScalar dist, bool bendLines, SkPath* dst = NULL) const;
+ uint32_t getGenerationID() const;
+
SkDEBUGCODE(void validate() const;)
private:
@@ -580,6 +582,7 @@ private:
mutable uint8_t fBoundsIsDirty;
uint8_t fFillType;
uint8_t fIsConvex;
+ uint32_t fGenerationID;
// called, if dirty, by getBounds()
void computeBounds() const;