| OLD | NEW |
| 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 SkOpSegment_DEFINE | 7 #ifndef SkOpSegment_DEFINE |
| 8 #define SkOpSegment_DEFINE | 8 #define SkOpSegment_DEFINE |
| 9 | 9 |
| 10 #include "SkOpAngle.h" | 10 #include "SkOpAngle.h" |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 #if DEBUG_DUMP | 311 #if DEBUG_DUMP |
| 312 int debugID() const { | 312 int debugID() const { |
| 313 return fID; | 313 return fID; |
| 314 } | 314 } |
| 315 #endif | 315 #endif |
| 316 #if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY | 316 #if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY |
| 317 void debugShowActiveSpans() const; | 317 void debugShowActiveSpans() const; |
| 318 #endif | 318 #endif |
| 319 #if DEBUG_SORT || DEBUG_SWAP_TOP | 319 #if DEBUG_SORT || DEBUG_SWAP_TOP |
| 320 void debugShowSort(const char* fun, const SkTArray<SkOpAngle*, true>& angles
, int first, | 320 void debugShowSort(const char* fun, const SkTArray<SkOpAngle*, true>& angles
, int first, |
| 321 const int contourWinding, const int oppContourWinding) const; | 321 const int contourWinding, const int oppContourWinding, bool sortable
) const; |
| 322 void debugShowSort(const char* fun, const SkTArray<SkOpAngle*, true>& angles
, int first); | 322 void debugShowSort(const char* fun, const SkTArray<SkOpAngle*, true>& angles
, int first, |
| 323 bool sortable); |
| 323 #endif | 324 #endif |
| 324 #if DEBUG_CONCIDENT | 325 #if DEBUG_CONCIDENT |
| 325 void debugShowTs() const; | 326 void debugShowTs() const; |
| 326 #endif | 327 #endif |
| 327 #if DEBUG_SHOW_WINDING | 328 #if DEBUG_SHOW_WINDING |
| 328 int debugShowWindingValues(int slotCount, int ofInterest) const; | 329 int debugShowWindingValues(int slotCount, int ofInterest) const; |
| 329 #endif | 330 #endif |
| 330 | 331 |
| 331 private: | 332 private: |
| 332 bool activeAngleOther(int index, int* done, SkTArray<SkOpAngle, true>* angle
s); | 333 bool activeAngleOther(int index, int* done, SkTArray<SkOpAngle, true>* angle
s); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 SkPath::Verb fVerb; | 404 SkPath::Verb fVerb; |
| 404 bool fOperand; | 405 bool fOperand; |
| 405 bool fXor; // set if original contour had even-odd fill | 406 bool fXor; // set if original contour had even-odd fill |
| 406 bool fOppXor; // set if opposite operand had even-odd fill | 407 bool fOppXor; // set if opposite operand had even-odd fill |
| 407 #if DEBUG_DUMP | 408 #if DEBUG_DUMP |
| 408 int fID; | 409 int fID; |
| 409 #endif | 410 #endif |
| 410 }; | 411 }; |
| 411 | 412 |
| 412 #endif | 413 #endif |
| OLD | NEW |