OLD | NEW |
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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 kFillType_SerializationShift = 8, // requires 8 bits | 931 kFillType_SerializationShift = 8, // requires 8 bits |
932 // low-8-bits are version | 932 // low-8-bits are version |
933 }; | 933 }; |
934 | 934 |
935 enum SerializationVersions { | 935 enum SerializationVersions { |
936 kPathPrivFirstDirection_Version = 1, | 936 kPathPrivFirstDirection_Version = 1, |
937 | 937 |
938 kCurrent_Version = 1 | 938 kCurrent_Version = 1 |
939 }; | 939 }; |
940 | 940 |
941 SkAutoTUnref<SkPathRef> fPathRef; | 941 SkAutoTUnref<SkPathRef> fPathRef; |
942 | 942 int fLastMoveToIndex; |
943 int fLastMoveToIndex; | 943 uint8_t fFillType; |
944 uint8_t fFillType; | 944 mutable uint8_t fConvexity; |
945 mutable uint8_t fConvexity; | 945 mutable SkAtomic<uint8_t, sk_memory_order_relaxed> fFirstDirection;// SkPath
Priv::FirstDirection |
946 mutable SkAtomic<uint8_t> fFirstDirection; // SkPathPriv::FirstDirection | 946 mutable SkBool8 fIsVolatile; |
947 mutable SkBool8 fIsVolatile; | |
948 | 947 |
949 /** Resets all fields other than fPathRef to their initial 'empty' values. | 948 /** Resets all fields other than fPathRef to their initial 'empty' values. |
950 * Assumes the caller has already emptied fPathRef. | 949 * Assumes the caller has already emptied fPathRef. |
951 * On Android increments fGenerationID without reseting it. | 950 * On Android increments fGenerationID without reseting it. |
952 */ | 951 */ |
953 void resetFields(); | 952 void resetFields(); |
954 | 953 |
955 /** Sets all fields other than fPathRef to the values in 'that'. | 954 /** Sets all fields other than fPathRef to the values in 'that'. |
956 * Assumes the caller has already set fPathRef. | 955 * Assumes the caller has already set fPathRef. |
957 * Doesn't change fGenerationID or fSourcePath on Android. | 956 * Doesn't change fGenerationID or fSourcePath on Android. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 void setPt(int index, SkScalar x, SkScalar y); | 1001 void setPt(int index, SkScalar x, SkScalar y); |
1003 | 1002 |
1004 friend class SkAutoPathBoundsUpdate; | 1003 friend class SkAutoPathBoundsUpdate; |
1005 friend class SkAutoDisableOvalCheck; | 1004 friend class SkAutoDisableOvalCheck; |
1006 friend class SkAutoDisableDirectionCheck; | 1005 friend class SkAutoDisableDirectionCheck; |
1007 friend class SkBench_AddPathTest; // perf test reversePathTo | 1006 friend class SkBench_AddPathTest; // perf test reversePathTo |
1008 friend class PathTest_Private; // unit test reversePathTo | 1007 friend class PathTest_Private; // unit test reversePathTo |
1009 }; | 1008 }; |
1010 | 1009 |
1011 #endif | 1010 #endif |
OLD | NEW |