Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: include/core/SkPath.h

Issue 1185453003: fix deserialization after FirstDirection change to paths (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPath.h
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index 52d2b2b514a144dbef386596c8fed36bfb6fbcfc..c77b4e6d83ea9e0913bfd5218c76d313974f423c 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -927,7 +927,13 @@ private:
// 1 free bit at 24
kConvexity_SerializationShift = 16, // requires 8 bits
kFillType_SerializationShift = 8, // requires 8 bits
- // 8 free bits at 0
+ // low-8-bits are version
+ };
+
+ enum SerializationVersions {
+ kPathPrivFirstDirection_Version = 1,
+
+ kCurrent_Version = 1
};
SkAutoTUnref<SkPathRef> fPathRef;
« no previous file with comments | « no previous file | src/core/SkPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698