| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkPath_DEFINED | 10 #ifndef SkPath_DEFINED |
| (...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 void setSourcePath(const SkPath* path); | 925 void setSourcePath(const SkPath* path); |
| 926 #else | 926 #else |
| 927 static const int kPathRefGenIDBitCnt = 32; | 927 static const int kPathRefGenIDBitCnt = 32; |
| 928 #endif | 928 #endif |
| 929 | 929 |
| 930 SkDEBUGCODE(void validate() const;) | 930 SkDEBUGCODE(void validate() const;) |
| 931 | 931 |
| 932 private: | 932 private: |
| 933 enum SerializationOffsets { | 933 enum SerializationOffsets { |
| 934 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V16_AND_ALL_OTHER_INSTANCES_TO
O | 934 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V16_AND_ALL_OTHER_INSTANCES_TO
O |
| 935 kNewFormat2_SerializationShift = 29, // requires 1 bit | 935 kNewFormat_SerializationShift = 29, // requires 1 bit |
| 936 #endif | 936 #endif |
| 937 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO
O | 937 kUnused1_SerializationShift = 28, // 1 free bit |
| 938 kNewFormat_SerializationShift = 28, // requires 1 bit | |
| 939 #endif | |
| 940 kDirection_SerializationShift = 26, // requires 2 bits | 938 kDirection_SerializationShift = 26, // requires 2 bits |
| 941 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO
O | 939 kUnused2_SerializationShift = 25, // 1 free bit |
| 942 // rename to kUnused_SerializationShift | |
| 943 kOldIsFinite_SerializationShift = 25, // 1 bit | |
| 944 #endif | |
| 945 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V16_AND_ALL_OTHER_INSTANCES_TO
O | 940 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V16_AND_ALL_OTHER_INSTANCES_TO
O |
| 946 kOldIsOval_SerializationShift = 24, // requires 1 bit | 941 kOldIsOval_SerializationShift = 24, // requires 1 bit |
| 947 #endif | 942 #endif |
| 948 kConvexity_SerializationShift = 16, // requires 8 bits | 943 kConvexity_SerializationShift = 16, // requires 8 bits |
| 949 kFillType_SerializationShift = 8, // requires 8 bits | 944 kFillType_SerializationShift = 8, // requires 8 bits |
| 950 kSegmentMask_SerializationShift = 0 // requires 4 bits | 945 kSegmentMask_SerializationShift = 0 // requires 4 bits |
| 951 }; | 946 }; |
| 952 | 947 |
| 953 SkAutoTUnref<SkPathRef> fPathRef; | 948 SkAutoTUnref<SkPathRef> fPathRef; |
| 954 | 949 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 friend class SkPathRef; // just for SerializationOffsets | 1011 friend class SkPathRef; // just for SerializationOffsets |
| 1017 #endif | 1012 #endif |
| 1018 friend class SkAutoPathBoundsUpdate; | 1013 friend class SkAutoPathBoundsUpdate; |
| 1019 friend class SkAutoDisableOvalCheck; | 1014 friend class SkAutoDisableOvalCheck; |
| 1020 friend class SkAutoDisableDirectionCheck; | 1015 friend class SkAutoDisableDirectionCheck; |
| 1021 friend class SkBench_AddPathTest; // perf test reversePathTo | 1016 friend class SkBench_AddPathTest; // perf test reversePathTo |
| 1022 friend class PathTest_Private; // unit test reversePathTo | 1017 friend class PathTest_Private; // unit test reversePathTo |
| 1023 }; | 1018 }; |
| 1024 | 1019 |
| 1025 #endif | 1020 #endif |
| OLD | NEW |