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 24 matching lines...) Expand all Loading... |
35 SkPath(); | 35 SkPath(); |
36 SkPath(const SkPath&); | 36 SkPath(const SkPath&); |
37 ~SkPath(); | 37 ~SkPath(); |
38 | 38 |
39 SkPath& operator=(const SkPath&); | 39 SkPath& operator=(const SkPath&); |
40 friend SK_API bool operator==(const SkPath&, const SkPath&); | 40 friend SK_API bool operator==(const SkPath&, const SkPath&); |
41 friend bool operator!=(const SkPath& a, const SkPath& b) { | 41 friend bool operator!=(const SkPath& a, const SkPath& b) { |
42 return !(a == b); | 42 return !(a == b); |
43 } | 43 } |
44 | 44 |
| 45 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
| 46 /** Returns true if the caller is the only owner of the underlying path data
*/ |
| 47 bool unique() const { return fPathRef->unique(); } |
| 48 #endif |
| 49 |
45 enum FillType { | 50 enum FillType { |
46 /** Specifies that "inside" is computed by a non-zero sum of signed | 51 /** Specifies that "inside" is computed by a non-zero sum of signed |
47 edge crossings | 52 edge crossings |
48 */ | 53 */ |
49 kWinding_FillType, | 54 kWinding_FillType, |
50 /** Specifies that "inside" is computed by an odd number of edge | 55 /** Specifies that "inside" is computed by an odd number of edge |
51 crossings | 56 crossings |
52 */ | 57 */ |
53 kEvenOdd_FillType, | 58 kEvenOdd_FillType, |
54 /** Same as Winding, but draws outside of the path, rather than inside | 59 /** Same as Winding, but draws outside of the path, rather than inside |
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1035 } | 1040 } |
1036 | 1041 |
1037 friend class SkAutoPathBoundsUpdate; | 1042 friend class SkAutoPathBoundsUpdate; |
1038 friend class SkAutoDisableOvalCheck; | 1043 friend class SkAutoDisableOvalCheck; |
1039 friend class SkAutoDisableDirectionCheck; | 1044 friend class SkAutoDisableDirectionCheck; |
1040 friend class SkBench_AddPathTest; // perf test reversePathTo | 1045 friend class SkBench_AddPathTest; // perf test reversePathTo |
1041 friend class PathTest_Private; // unit test reversePathTo | 1046 friend class PathTest_Private; // unit test reversePathTo |
1042 }; | 1047 }; |
1043 | 1048 |
1044 #endif | 1049 #endif |
OLD | NEW |