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 | 7 |
8 #include "SkPathOpsDebug.h" | 8 #include "SkPathOpsDebug.h" |
9 #include "SkPath.h" | 9 #include "SkPath.h" |
10 | 10 |
11 #if defined SK_DEBUG || !FORCE_RELEASE | 11 #if defined SK_DEBUG || !FORCE_RELEASE |
12 | 12 |
13 const char* SkPathOpsDebug::kLVerbStr[] = {"", "line", "quad", "cubic"}; | 13 const char* SkPathOpsDebug::kLVerbStr[] = {"", "line", "quad", "cubic"}; |
14 | 14 |
15 #if defined(SK_DEBUG) || !FORCE_RELEASE | 15 #if defined(SK_DEBUG) || !FORCE_RELEASE |
16 int SkPathOpsDebug::gContourID; | 16 int SkPathOpsDebug::gContourID = 0; |
17 int SkPathOpsDebug::gSegmentID; | 17 int SkPathOpsDebug::gSegmentID = 0; |
18 #endif | 18 #endif |
19 | 19 |
20 #if DEBUG_SORT || DEBUG_SWAP_TOP | 20 #if DEBUG_SORT || DEBUG_SWAP_TOP |
21 int SkPathOpsDebug::gSortCountDefault = SK_MaxS32; | 21 int SkPathOpsDebug::gSortCountDefault = SK_MaxS32; |
22 int SkPathOpsDebug::gSortCount; | 22 int SkPathOpsDebug::gSortCount; |
23 #endif | 23 #endif |
24 | 24 |
25 #if DEBUG_ACTIVE_OP | 25 #if DEBUG_ACTIVE_OP |
26 const char* SkPathOpsDebug::kPathOpStr[] = {"diff", "sect", "union", "xor"}; | 26 const char* SkPathOpsDebug::kPathOpStr[] = {"diff", "sect", "union", "xor"}; |
27 #endif | 27 #endif |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 } | 614 } |
615 last = &span; | 615 last = &span; |
616 hasLoop |= last->fLoop; | 616 hasLoop |= last->fLoop; |
617 } | 617 } |
618 SK_DEBUGBREAK(done == fDoneSpans); | 618 SK_DEBUGBREAK(done == fDoneSpans); |
619 if (fAngles.count() ) { | 619 if (fAngles.count() ) { |
620 fAngles.begin()->debugValidateLoop(); | 620 fAngles.begin()->debugValidateLoop(); |
621 } | 621 } |
622 #endif | 622 #endif |
623 } | 623 } |
OLD | NEW |