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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1027 } | 1027 } |
1028 | 1028 |
1029 | 1029 |
1030 // 'rect' needs to be sorted | 1030 // 'rect' needs to be sorted |
1031 void setBounds(const SkRect& rect) { | 1031 void setBounds(const SkRect& rect) { |
1032 SkPathRef::Editor ed(&fPathRef); | 1032 SkPathRef::Editor ed(&fPathRef); |
1033 | 1033 |
1034 ed.setBounds(rect); | 1034 ed.setBounds(rect); |
1035 } | 1035 } |
1036 | 1036 |
| 1037 void setPt(int index, SkScalar x, SkScalar y); |
| 1038 |
1037 friend class SkAutoPathBoundsUpdate; | 1039 friend class SkAutoPathBoundsUpdate; |
1038 friend class SkAutoDisableOvalCheck; | 1040 friend class SkAutoDisableOvalCheck; |
1039 friend class SkAutoDisableDirectionCheck; | 1041 friend class SkAutoDisableDirectionCheck; |
1040 friend class SkBench_AddPathTest; // perf test reversePathTo | 1042 friend class SkBench_AddPathTest; // perf test reversePathTo |
1041 friend class PathTest_Private; // unit test reversePathTo | 1043 friend class PathTest_Private; // unit test reversePathTo |
1042 }; | 1044 }; |
1043 | 1045 |
1044 #endif | 1046 #endif |
OLD | NEW |