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

Side by Side Diff: include/core/SkPath.h

Issue 1702393002: add last move to serialized path (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/core/SkPath.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPath_DEFINED 8 #ifndef SkPath_DEFINED
9 #define SkPath_DEFINED 9 #define SkPath_DEFINED
10 10
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 kDirection_SerializationShift = 26, // requires 2 bits 1068 kDirection_SerializationShift = 26, // requires 2 bits
1069 kIsVolatile_SerializationShift = 25, // requires 1 bit 1069 kIsVolatile_SerializationShift = 25, // requires 1 bit
1070 // 1 free bit at 24 1070 // 1 free bit at 24
1071 kConvexity_SerializationShift = 16, // requires 8 bits 1071 kConvexity_SerializationShift = 16, // requires 8 bits
1072 kFillType_SerializationShift = 8, // requires 8 bits 1072 kFillType_SerializationShift = 8, // requires 8 bits
1073 // low-8-bits are version 1073 // low-8-bits are version
1074 }; 1074 };
1075 1075
1076 enum SerializationVersions { 1076 enum SerializationVersions {
1077 kPathPrivFirstDirection_Version = 1, 1077 kPathPrivFirstDirection_Version = 1,
1078 1078 kPathPrivLastMoveToIndex_Version = 2,
1079 kCurrent_Version = 1 1079 kCurrent_Version = 2
1080 }; 1080 };
1081 1081
1082 SkAutoTUnref<SkPathRef> fPathRef; 1082 SkAutoTUnref<SkPathRef> fPathRef;
1083 int fLastMoveToIndex; 1083 int fLastMoveToIndex;
1084 uint8_t fFillType; 1084 uint8_t fFillType;
1085 mutable uint8_t fConvexity; 1085 mutable uint8_t fConvexity;
1086 mutable SkAtomic<uint8_t, sk_memory_order_relaxed> fFirstDirection;// SkPath Priv::FirstDirection 1086 mutable SkAtomic<uint8_t, sk_memory_order_relaxed> fFirstDirection;// SkPath Priv::FirstDirection
1087 mutable SkBool8 fIsVolatile; 1087 mutable SkBool8 fIsVolatile;
1088 1088
1089 /** Resets all fields other than fPathRef to their initial 'empty' values. 1089 /** Resets all fields other than fPathRef to their initial 'empty' values.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 1143
1144 friend class SkAutoPathBoundsUpdate; 1144 friend class SkAutoPathBoundsUpdate;
1145 friend class SkAutoDisableOvalCheck; 1145 friend class SkAutoDisableOvalCheck;
1146 friend class SkAutoDisableDirectionCheck; 1146 friend class SkAutoDisableDirectionCheck;
1147 friend class SkBench_AddPathTest; // perf test reversePathTo 1147 friend class SkBench_AddPathTest; // perf test reversePathTo
1148 friend class PathTest_Private; // unit test reversePathTo 1148 friend class PathTest_Private; // unit test reversePathTo
1149 friend class ForceIsRRect_Private; // unit test isRRect 1149 friend class ForceIsRRect_Private; // unit test isRRect
1150 }; 1150 };
1151 1151
1152 #endif 1152 #endif
OLDNEW
« 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