| 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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 | 993 |
| 994 // 'rect' needs to be sorted | 994 // 'rect' needs to be sorted |
| 995 void setBounds(const SkRect& rect) { | 995 void setBounds(const SkRect& rect) { |
| 996 SkPathRef::Editor ed(&fPathRef); | 996 SkPathRef::Editor ed(&fPathRef); |
| 997 | 997 |
| 998 ed.setBounds(rect); | 998 ed.setBounds(rect); |
| 999 } | 999 } |
| 1000 | 1000 |
| 1001 void setPt(int index, SkScalar x, SkScalar y); | 1001 void setPt(int index, SkScalar x, SkScalar y); |
| 1002 | 1002 |
| 1003 SkPathRef* pathRef() const { return fPathRef; } |
| 1004 |
| 1003 friend class SkAutoPathBoundsUpdate; | 1005 friend class SkAutoPathBoundsUpdate; |
| 1004 friend class SkAutoDisableOvalCheck; | 1006 friend class SkAutoDisableOvalCheck; |
| 1005 friend class SkAutoDisableDirectionCheck; | 1007 friend class SkAutoDisableDirectionCheck; |
| 1006 friend class SkBench_AddPathTest; // perf test reversePathTo | 1008 friend class SkBench_AddPathTest; // perf test reversePathTo |
| 1007 friend class PathTest_Private; // unit test reversePathTo | 1009 friend class PathTest_Private; // unit test reversePathTo |
| 1010 friend class TessellatingPathBatch; // for pathRef() |
| 1008 }; | 1011 }; |
| 1009 | 1012 |
| 1010 #endif | 1013 #endif |
| OLD | NEW |