| 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 |
| 11 #include "SkInstCnt.h" | |
| 12 #include "SkMatrix.h" | 11 #include "SkMatrix.h" |
| 13 #include "SkPathRef.h" | 12 #include "SkPathRef.h" |
| 14 #include "SkTDArray.h" | 13 #include "SkTDArray.h" |
| 15 #include "SkRefCnt.h" | 14 #include "SkRefCnt.h" |
| 16 | 15 |
| 17 class SkReader32; | 16 class SkReader32; |
| 18 class SkWriter32; | 17 class SkWriter32; |
| 19 class SkAutoPathBoundsUpdate; | 18 class SkAutoPathBoundsUpdate; |
| 20 class SkString; | 19 class SkString; |
| 21 class SkRRect; | 20 class SkRRect; |
| 22 class SkWStream; | 21 class SkWStream; |
| 23 | 22 |
| 24 /** \class SkPath | 23 /** \class SkPath |
| 25 | 24 |
| 26 The SkPath class encapsulates compound (multiple contour) geometric paths | 25 The SkPath class encapsulates compound (multiple contour) geometric paths |
| 27 consisting of straight line segments, quadratic curves, and cubic curves. | 26 consisting of straight line segments, quadratic curves, and cubic curves. |
| 28 */ | 27 */ |
| 29 class SK_API SkPath { | 28 class SK_API SkPath { |
| 30 public: | 29 public: |
| 31 SK_DECLARE_INST_COUNT(SkPath); | |
| 32 | |
| 33 SkPath(); | 30 SkPath(); |
| 34 SkPath(const SkPath&); | 31 SkPath(const SkPath&); |
| 35 ~SkPath(); | 32 ~SkPath(); |
| 36 | 33 |
| 37 SkPath& operator=(const SkPath&); | 34 SkPath& operator=(const SkPath&); |
| 38 friend SK_API bool operator==(const SkPath&, const SkPath&); | 35 friend SK_API bool operator==(const SkPath&, const SkPath&); |
| 39 friend bool operator!=(const SkPath& a, const SkPath& b) { | 36 friend bool operator!=(const SkPath& a, const SkPath& b) { |
| 40 return !(a == b); | 37 return !(a == b); |
| 41 } | 38 } |
| 42 | 39 |
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 void setPt(int index, SkScalar x, SkScalar y); | 997 void setPt(int index, SkScalar x, SkScalar y); |
| 1001 | 998 |
| 1002 friend class SkAutoPathBoundsUpdate; | 999 friend class SkAutoPathBoundsUpdate; |
| 1003 friend class SkAutoDisableOvalCheck; | 1000 friend class SkAutoDisableOvalCheck; |
| 1004 friend class SkAutoDisableDirectionCheck; | 1001 friend class SkAutoDisableDirectionCheck; |
| 1005 friend class SkBench_AddPathTest; // perf test reversePathTo | 1002 friend class SkBench_AddPathTest; // perf test reversePathTo |
| 1006 friend class PathTest_Private; // unit test reversePathTo | 1003 friend class PathTest_Private; // unit test reversePathTo |
| 1007 }; | 1004 }; |
| 1008 | 1005 |
| 1009 #endif | 1006 #endif |
| OLD | NEW |