aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-03-18 16:23:34 -0700
committerRomain Guy <romainguy@google.com>2011-03-18 16:23:34 -0700
commit5d0915c031ca37b2affc456aca3110f8ba5428bb (patch)
tree292c308b2f57591329c60671766f60af782b2b58 /include
parent137a4ca42423bbb6d683067ea544c9a48f18f06c (diff)
downloadexternal_skia-5d0915c031ca37b2affc456aca3110f8ba5428bb.zip
external_skia-5d0915c031ca37b2affc456aca3110f8ba5428bb.tar.gz
external_skia-5d0915c031ca37b2affc456aca3110f8ba5428bb.tar.bz2
Fix Path generation id tracking.
Change-Id: I5acaa683a402162c31a566c524b53b0b16445a3f
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPath.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index 51afad7..24e260b 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -72,7 +72,10 @@ public:
@param ft The new fill type for this path
*/
- void setFillType(FillType ft) { fFillType = SkToU8(ft); }
+ void setFillType(FillType ft) {
+ fFillType = SkToU8(ft);
+ fGenerationID++;
+ }
/** Returns true if the filltype is one of the Inverse variants */
bool isInverseFillType() const { return (fFillType & 2) != 0; }
@@ -80,7 +83,10 @@ public:
/** Toggle between inverse and normal filltypes. This reverse the return
value of isInverseFillType()
*/
- void toggleInverseFillType() { fFillType ^= 2; }
+ void toggleInverseFillType() {
+ fFillType ^= 2;
+ fGenerationID++;
+ }
/** Returns true if the path is flagged as being convex. This is not a
confirmed by any analysis, it is just the value set earlier.
@@ -92,7 +98,10 @@ public:
not convex can give undefined results when drawn. Paths default to
isConvex == false
*/
- void setIsConvex(bool isConvex) { fIsConvex = (isConvex != 0); }
+ void setIsConvex(bool isConvex) {
+ fIsConvex = (isConvex != 0);
+ fGenerationID++;
+ }
/** Clear any lines and curves from the path, making it empty. This frees up
internal storage associated with those segments.