diff options
author | 2013-08-07 19:17:53 +0000 | |
---|---|---|
committer | 2013-08-07 19:17:53 +0000 | |
commit | 9c9d4a70028ef8dc33a46cfc0b22e254443effe3 (patch) | |
tree | 0c0eceba058ae5f7ec60ab0e70f058b05a5f7dbb /include/core/SkPath.h | |
parent | 8dc8bc55479eb7895b3f0cf4fb42d9d917b21ee1 (diff) |
Restore SkPath(const SkPath&) to copy the generation ID on Android.
BUG=
R=bsalomon@google.com, bungeman@google.com, reed@google.com
Review URL: https://codereview.chromium.org/22471002
git-svn-id: http://skia.googlecode.com/svn/trunk@10622 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r-- | include/core/SkPath.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h index d4b79cda04..be15a63c89 100644 --- a/include/core/SkPath.h +++ b/include/core/SkPath.h @@ -40,11 +40,10 @@ public: SK_DECLARE_INST_COUNT_ROOT(SkPath); SkPath(); - SkPath(const SkPath&); + SkPath(const SkPath&); // Copies fGenerationID on Android. ~SkPath(); - SkPath& operator=(const SkPath&); - + SkPath& operator=(const SkPath&); // Increments fGenerationID on Android. friend SK_API bool operator==(const SkPath&, const SkPath&); friend bool operator!=(const SkPath& a, const SkPath& b) { return !(a == b); @@ -167,14 +166,12 @@ public: /** Clear any lines and curves from the path, making it empty. This frees up internal storage associated with those segments. - This does NOT change the fill-type setting nor isConvex */ void reset(); /** Similar to reset(), in that all lines and curves are removed from the path. However, any internal storage for those lines/curves is retained, making reuse of the path potentially faster. - This does NOT change the fill-type setting nor isConvex */ void rewind(); @@ -965,8 +962,7 @@ private: /** Sets all fields other than fPathRef to the values in 'that'. * Assumes the caller has already set fPathRef. - * On Android increments fGenerationID without copying it. - * On Android sets fSourcePath to NULL. + * Doesn't change fGenerationID or fSourcePath on Android. */ void copyFields(const SkPath& that); |