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 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 segments have been visited, return kDone_Verb. | 949 segments have been visited, return kDone_Verb. |
950 | 950 |
951 @param pts The points representing the current verb and/or segment | 951 @param pts The points representing the current verb and/or segment |
952 This must not be NULL. | 952 This must not be NULL. |
953 @return The verb for the current segment | 953 @return The verb for the current segment |
954 */ | 954 */ |
955 Verb next(SkPoint pts[4]) { | 955 Verb next(SkPoint pts[4]) { |
956 return (Verb) fRawIter.next(pts); | 956 return (Verb) fRawIter.next(pts); |
957 } | 957 } |
958 | 958 |
| 959 /** Return what the next verb will be, but do not visit the next segment
. |
| 960 |
| 961 @return The verb for the next segment |
| 962 */ |
| 963 Verb peek() const { |
| 964 return (Verb) fRawIter.peek(); |
| 965 } |
| 966 |
959 SkScalar conicWeight() const { | 967 SkScalar conicWeight() const { |
960 return fRawIter.conicWeight(); | 968 return fRawIter.conicWeight(); |
961 } | 969 } |
962 | 970 |
963 private: | 971 private: |
964 SkPathRef::Iter fRawIter; | 972 SkPathRef::Iter fRawIter; |
965 friend class SkPath; | 973 friend class SkPath; |
966 }; | 974 }; |
967 | 975 |
968 /** | 976 /** |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 | 1095 |
1088 friend class SkAutoPathBoundsUpdate; | 1096 friend class SkAutoPathBoundsUpdate; |
1089 friend class SkAutoDisableOvalCheck; | 1097 friend class SkAutoDisableOvalCheck; |
1090 friend class SkAutoDisableDirectionCheck; | 1098 friend class SkAutoDisableDirectionCheck; |
1091 friend class SkBench_AddPathTest; // perf test reversePathTo | 1099 friend class SkBench_AddPathTest; // perf test reversePathTo |
1092 friend class PathTest_Private; // unit test reversePathTo | 1100 friend class PathTest_Private; // unit test reversePathTo |
1093 friend class ForceIsRRect_Private; // unit test isRRect | 1101 friend class ForceIsRRect_Private; // unit test isRRect |
1094 }; | 1102 }; |
1095 | 1103 |
1096 #endif | 1104 #endif |
OLD | NEW |