| 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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 | 965 |
| 966 /** Sets all fields other than fPathRef to the values in 'that'. | 966 /** Sets all fields other than fPathRef to the values in 'that'. |
| 967 * Assumes the caller has already set fPathRef. | 967 * Assumes the caller has already set fPathRef. |
| 968 * Doesn't change fGenerationID or fSourcePath on Android. | 968 * Doesn't change fGenerationID or fSourcePath on Android. |
| 969 */ | 969 */ |
| 970 void copyFields(const SkPath& that); | 970 void copyFields(const SkPath& that); |
| 971 | 971 |
| 972 friend class Iter; | 972 friend class Iter; |
| 973 | 973 |
| 974 friend class SkPathStroker; | 974 friend class SkPathStroker; |
| 975 /* Append the first contour of path, ignoring path's initial point. If no | |
| 976 moveTo() call has been made for this contour, the first point is | |
| 977 automatically set to (0,0). | |
| 978 */ | |
| 979 void pathTo(const SkPath& path); | |
| 980 | 975 |
| 981 /* Append, in reverse order, the first contour of path, ignoring path's | 976 /* Append, in reverse order, the first contour of path, ignoring path's |
| 982 last point. If no moveTo() call has been made for this contour, the | 977 last point. If no moveTo() call has been made for this contour, the |
| 983 first point is automatically set to (0,0). | 978 first point is automatically set to (0,0). |
| 984 */ | 979 */ |
| 985 void reversePathTo(const SkPath&); | 980 void reversePathTo(const SkPath&); |
| 986 | 981 |
| 987 // called before we add points for lineTo, quadTo, cubicTo, checking to see | 982 // called before we add points for lineTo, quadTo, cubicTo, checking to see |
| 988 // if we need to inject a leading moveTo first | 983 // if we need to inject a leading moveTo first |
| 989 // | 984 // |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1012 void setBounds(const SkRect& rect) { | 1007 void setBounds(const SkRect& rect) { |
| 1013 fPathRef->setBounds(rect); | 1008 fPathRef->setBounds(rect); |
| 1014 } | 1009 } |
| 1015 | 1010 |
| 1016 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO
O | 1011 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TO
O |
| 1017 friend class SkPathRef; // just for SerializationOffsets | 1012 friend class SkPathRef; // just for SerializationOffsets |
| 1018 #endif | 1013 #endif |
| 1019 friend class SkAutoPathBoundsUpdate; | 1014 friend class SkAutoPathBoundsUpdate; |
| 1020 friend class SkAutoDisableOvalCheck; | 1015 friend class SkAutoDisableOvalCheck; |
| 1021 friend class SkAutoDisableDirectionCheck; | 1016 friend class SkAutoDisableDirectionCheck; |
| 1022 friend class SkBench_AddPathTest; // perf test pathTo/reversePathTo | 1017 friend class SkBench_AddPathTest; // perf test reversePathTo |
| 1018 friend class PathTest_Private; // unit test reversePathTo |
| 1023 }; | 1019 }; |
| 1024 | 1020 |
| 1025 #endif | 1021 #endif |
| OLD | NEW |