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

Side by Side Diff: include/pathops/SkPathOps.h

Issue 2481463002: use reversePathTo in place of addPathReverse (Closed)
Patch Set: fix nanobench; stop after one contour Created 4 years, 1 month 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 | « include/core/SkPath.h ('k') | src/core/SkPath.cpp » ('j') | 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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
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 #ifndef SkPathOps_DEFINED 7 #ifndef SkPathOps_DEFINED
8 #define SkPathOps_DEFINED 8 #define SkPathOps_DEFINED
9 9
10 #include "../private/SkTArray.h" 10 #include "../private/SkTArray.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 @param result The product of the operands. 85 @param result The product of the operands.
86 @return True if the operation succeeded. 86 @return True if the operation succeeded.
87 */ 87 */
88 bool resolve(SkPath* result); 88 bool resolve(SkPath* result);
89 89
90 private: 90 private:
91 SkTArray<SkPath> fPathRefs; 91 SkTArray<SkPath> fPathRefs;
92 SkTDArray<SkPathOp> fOps; 92 SkTDArray<SkPathOp> fOps;
93 93
94 static bool FixWinding(SkPath* path);
95 static void ReversePath(SkPath* path);
94 void reset(); 96 void reset();
95 }; 97 };
96 98
97 #endif 99 #endif
OLDNEW
« no previous file with comments | « include/core/SkPath.h ('k') | src/core/SkPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698