Chromium Code Reviews| 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 /** May return true if the caller is the only owner. | |
|
reed1
2015/02/12 19:47:48
"May" ? That is mysteriously noncommittal.
/** Re
| |
| 46 */ | |
| 47 bool unique() const { return fPathRef->unique(); } | |
| 48 | |
| 45 enum FillType { | 49 enum FillType { |
| 46 /** Specifies that "inside" is computed by a non-zero sum of signed | 50 /** Specifies that "inside" is computed by a non-zero sum of signed |
| 47 edge crossings | 51 edge crossings |
| 48 */ | 52 */ |
| 49 kWinding_FillType, | 53 kWinding_FillType, |
| 50 /** Specifies that "inside" is computed by an odd number of edge | 54 /** Specifies that "inside" is computed by an odd number of edge |
| 51 crossings | 55 crossings |
| 52 */ | 56 */ |
| 53 kEvenOdd_FillType, | 57 kEvenOdd_FillType, |
| 54 /** Same as Winding, but draws outside of the path, rather than inside | 58 /** 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 } | 1039 } |
| 1036 | 1040 |
| 1037 friend class SkAutoPathBoundsUpdate; | 1041 friend class SkAutoPathBoundsUpdate; |
| 1038 friend class SkAutoDisableOvalCheck; | 1042 friend class SkAutoDisableOvalCheck; |
| 1039 friend class SkAutoDisableDirectionCheck; | 1043 friend class SkAutoDisableDirectionCheck; |
| 1040 friend class SkBench_AddPathTest; // perf test reversePathTo | 1044 friend class SkBench_AddPathTest; // perf test reversePathTo |
| 1041 friend class PathTest_Private; // unit test reversePathTo | 1045 friend class PathTest_Private; // unit test reversePathTo |
| 1042 }; | 1046 }; |
| 1043 | 1047 |
| 1044 #endif | 1048 #endif |
| OLD | NEW |