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

Side by Side Diff: src/pathops/SkOpContour.h

Issue 14798004: path ops -- fix skp bugs (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/pathops/SkOpAngle.cpp ('k') | src/pathops/SkOpContour.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 2013 Google Inc. 2 * Copyright 2013 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 SkOpContour_DEFINED 7 #ifndef SkOpContour_DEFINED
8 #define SkOpContour_DEFINED 8 #define SkOpContour_DEFINED
9 9
10 #include "SkOpSegment.h" 10 #include "SkOpSegment.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 segment.updatePts(pts); 197 segment.updatePts(pts);
198 return segment.verb() + 1; 198 return segment.verb() + 1;
199 } 199 }
200 200
201 #if DEBUG_TEST 201 #if DEBUG_TEST
202 SkTArray<SkOpSegment>& debugSegments() { 202 SkTArray<SkOpSegment>& debugSegments() {
203 return fSegments; 203 return fSegments;
204 } 204 }
205 #endif 205 #endif
206 206
207 #if DEBUG_ACTIVE_SPANS 207 #if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY
208 void debugShowActiveSpans() { 208 void debugShowActiveSpans() {
209 for (int index = 0; index < fSegments.count(); ++index) { 209 for (int index = 0; index < fSegments.count(); ++index) {
210 fSegments[index].debugShowActiveSpans(); 210 fSegments[index].debugShowActiveSpans();
211 } 211 }
212 } 212 }
213 #endif 213 #endif
214 214
215 #if DEBUG_SHOW_WINDING 215 #if DEBUG_SHOW_WINDING
216 int debugShowWindingValues(int totalSegments, int ofInterest); 216 int debugShowWindingValues(int totalSegments, int ofInterest);
217 static void debugShowWindingValues(const SkTDArray<SkOpContour*>& contourLis t); 217 static void debugShowWindingValues(const SkTDArray<SkOpContour*>& contourLis t);
(...skipping 14 matching lines...) Expand all
232 bool fDone; 232 bool fDone;
233 bool fOperand; // true for the second argument to a binary operator 233 bool fOperand; // true for the second argument to a binary operator
234 bool fXor; 234 bool fXor;
235 bool fOppXor; 235 bool fOppXor;
236 #if DEBUG_DUMP 236 #if DEBUG_DUMP
237 int fID; 237 int fID;
238 #endif 238 #endif
239 }; 239 };
240 240
241 #endif 241 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpAngle.cpp ('k') | src/pathops/SkOpContour.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698