| 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 | 954 |
| 955 /** Sets all fields other than fPathRef to the values in 'that'. | 955 /** Sets all fields other than fPathRef to the values in 'that'. |
| 956 * Assumes the caller has already set fPathRef. | 956 * Assumes the caller has already set fPathRef. |
| 957 * Doesn't change fGenerationID or fSourcePath on Android. | 957 * Doesn't change fGenerationID or fSourcePath on Android. |
| 958 */ | 958 */ |
| 959 void copyFields(const SkPath& that); | 959 void copyFields(const SkPath& that); |
| 960 | 960 |
| 961 friend class Iter; | 961 friend class Iter; |
| 962 friend class SkPathPriv; | 962 friend class SkPathPriv; |
| 963 friend class SkPathStroker; | 963 friend class SkPathStroker; |
| 964 friend class SkPathIter; |
| 964 | 965 |
| 965 /* Append, in reverse order, the first contour of path, ignoring path's | 966 /* Append, in reverse order, the first contour of path, ignoring path's |
| 966 last point. If no moveTo() call has been made for this contour, the | 967 last point. If no moveTo() call has been made for this contour, the |
| 967 first point is automatically set to (0,0). | 968 first point is automatically set to (0,0). |
| 968 */ | 969 */ |
| 969 void reversePathTo(const SkPath&); | 970 void reversePathTo(const SkPath&); |
| 970 | 971 |
| 971 // called before we add points for lineTo, quadTo, cubicTo, checking to see | 972 // called before we add points for lineTo, quadTo, cubicTo, checking to see |
| 972 // if we need to inject a leading moveTo first | 973 // if we need to inject a leading moveTo first |
| 973 // | 974 // |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1002 void setPt(int index, SkScalar x, SkScalar y); | 1003 void setPt(int index, SkScalar x, SkScalar y); |
| 1003 | 1004 |
| 1004 friend class SkAutoPathBoundsUpdate; | 1005 friend class SkAutoPathBoundsUpdate; |
| 1005 friend class SkAutoDisableOvalCheck; | 1006 friend class SkAutoDisableOvalCheck; |
| 1006 friend class SkAutoDisableDirectionCheck; | 1007 friend class SkAutoDisableDirectionCheck; |
| 1007 friend class SkBench_AddPathTest; // perf test reversePathTo | 1008 friend class SkBench_AddPathTest; // perf test reversePathTo |
| 1008 friend class PathTest_Private; // unit test reversePathTo | 1009 friend class PathTest_Private; // unit test reversePathTo |
| 1009 }; | 1010 }; |
| 1010 | 1011 |
| 1011 #endif | 1012 #endif |
| OLD | NEW |