OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |