aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPath.h
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2016-02-17 12:16:27 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-17 12:16:27 -0800
commit6900641e02c3b6c7ee15d0aa5bd4af0d42db480f (patch)
treef2c3dbad70bdb4d6cdc4e793b06293c713aeeb67 /include/core/SkPath.h
parent134ad3e5b0979c2fd60dc01717022cac57fd76ec (diff)
add last move to serialized path
A deserialized path keeps the last move location so that a subsequent append to the path does not add an unwanted close verb. R=reed@oogle.com BUG=skia:4847 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1702393002 Review URL: https://codereview.chromium.org/1702393002
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r--include/core/SkPath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index 7c6fd35d5a..9fd7d983cf 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -1075,8 +1075,8 @@ private:
enum SerializationVersions {
kPathPrivFirstDirection_Version = 1,
-
- kCurrent_Version = 1
+ kPathPrivLastMoveToIndex_Version = 2,
+ kCurrent_Version = 2
};
SkAutoTUnref<SkPathRef> fPathRef;