Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: include/core/SkPath.h

Issue 913413004: Expose SkPathRef::unique through SkPath. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment and define Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698