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 SkPathOpsDebug_DEFINED | 7 #ifndef SkPathOpsDebug_DEFINED |
8 #define SkPathOpsDebug_DEFINED | 8 #define SkPathOpsDebug_DEFINED |
9 | 9 |
10 #include "SkPathOps.h" | 10 #include "SkPathOps.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #else | 30 #else |
31 #define SK_SNPRINTF snprintf | 31 #define SK_SNPRINTF snprintf |
32 #endif | 32 #endif |
33 | 33 |
34 #define WIND_AS_STRING(x) char x##Str[12]; \ | 34 #define WIND_AS_STRING(x) char x##Str[12]; \ |
35 if (!SkPathOpsDebug::ValidWind(x)) strcpy(x##Str, "?"); \ | 35 if (!SkPathOpsDebug::ValidWind(x)) strcpy(x##Str, "?"); \ |
36 else SK_SNPRINTF(x##Str, sizeof(x##Str), "%d", x) | 36 else SK_SNPRINTF(x##Str, sizeof(x##Str), "%d", x) |
37 | 37 |
38 #if FORCE_RELEASE | 38 #if FORCE_RELEASE |
39 | 39 |
40 #define DEBUG_CUBIC_SWAP_TOP 0 | |
41 | |
42 #define DEBUG_ACTIVE_OP 0 | 40 #define DEBUG_ACTIVE_OP 0 |
43 #define DEBUG_ACTIVE_SPANS 0 | 41 #define DEBUG_ACTIVE_SPANS 0 |
44 #define DEBUG_ADD_INTERSECTING_TS 0 | 42 #define DEBUG_ADD_INTERSECTING_TS 0 |
45 #define DEBUG_ADD_T 0 | 43 #define DEBUG_ADD_T 0 |
46 #define DEBUG_ANGLE 0 | 44 #define DEBUG_ANGLE 0 |
47 #define DEBUG_ASSEMBLE 0 | 45 #define DEBUG_ASSEMBLE 0 |
48 #define DEBUG_CUBIC_BINARY_SEARCH 0 | 46 #define DEBUG_CUBIC_BINARY_SEARCH 0 |
49 #define DEBUG_CUBIC_SPLIT 0 | 47 #define DEBUG_CUBIC_SPLIT 0 |
50 #define DEBUG_DUMP_SEGMENTS DEBUG_CUBIC_SWAP_TOP | 48 #define DEBUG_DUMP_SEGMENTS 0 // 1 |
51 #define DEBUG_FLOW 0 | 49 #define DEBUG_FLOW 0 |
52 #define DEBUG_LIMIT_WIND_SUM 0 | 50 #define DEBUG_LIMIT_WIND_SUM 0 |
53 #define DEBUG_MARK_DONE 0 | 51 #define DEBUG_MARK_DONE 0 |
54 #define DEBUG_PATH_CONSTRUCTION 0 | 52 #define DEBUG_PATH_CONSTRUCTION 0 |
55 #define DEBUG_PERP 0 | 53 #define DEBUG_PERP 0 |
56 #define DEBUG_SHOW_TEST_NAME DEBUG_CUBIC_SWAP_TOP | 54 #define DEBUG_SHOW_TEST_NAME 0 // 1 |
57 #define DEBUG_SORT 0 | 55 #define DEBUG_SORT 0 |
58 #define DEBUG_SWAP_TOP DEBUG_CUBIC_SWAP_TOP | 56 #define DEBUG_SWAP_TOP 0 // 1 |
59 #define DEBUG_T_SECT 0 | 57 #define DEBUG_T_SECT 0 |
60 #define DEBUG_T_SECT_DUMP 0 | 58 #define DEBUG_T_SECT_DUMP 0 |
61 #define DEBUG_VALIDATE 0 | 59 #define DEBUG_VALIDATE 0 |
62 #define DEBUG_WINDING 0 | 60 #define DEBUG_WINDING 0 |
63 #define DEBUG_WINDING_AT_T 0 | 61 #define DEBUG_WINDING_AT_T 0 |
64 | 62 |
65 #undef DEBUG_CUBIC_SWAP_TOP | |
66 | |
67 #else | 63 #else |
68 | 64 |
69 #define DEBUG_ACTIVE_OP 1 | 65 #define DEBUG_ACTIVE_OP 1 |
70 #define DEBUG_ACTIVE_SPANS 1 | 66 #define DEBUG_ACTIVE_SPANS 1 |
71 #define DEBUG_ADD_INTERSECTING_TS 1 | 67 #define DEBUG_ADD_INTERSECTING_TS 1 |
72 #define DEBUG_ADD_T 1 | 68 #define DEBUG_ADD_T 1 |
73 #define DEBUG_ANGLE 1 | 69 #define DEBUG_ANGLE 1 |
74 #define DEBUG_ASSEMBLE 1 | 70 #define DEBUG_ASSEMBLE 1 |
75 #define DEBUG_CUBIC_BINARY_SEARCH 0 | 71 #define DEBUG_CUBIC_BINARY_SEARCH 0 |
76 #define DEBUG_CUBIC_SPLIT 1 | 72 #define DEBUG_CUBIC_SPLIT 1 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 void Dump(const SkTDArray<class SkOpContour* >* contours); | 226 void Dump(const SkTDArray<class SkOpContour* >* contours); |
231 void DumpAll(SkTDArray<class SkOpContour* >* contours); | 227 void DumpAll(SkTDArray<class SkOpContour* >* contours); |
232 void DumpAngles(const SkTDArray<class SkOpContour* >* contours); | 228 void DumpAngles(const SkTDArray<class SkOpContour* >* contours); |
233 void DumpCoin(const SkTDArray<class SkOpContour* >* contours); | 229 void DumpCoin(const SkTDArray<class SkOpContour* >* contours); |
234 void DumpPt(const SkTDArray<class SkOpContour* >* contours, int segmentID); | 230 void DumpPt(const SkTDArray<class SkOpContour* >* contours, int segmentID); |
235 void DumpPts(const SkTDArray<class SkOpContour* >* contours); | 231 void DumpPts(const SkTDArray<class SkOpContour* >* contours); |
236 void DumpSegment(const SkTDArray<class SkOpContour* >* contours, int segmentID); | 232 void DumpSegment(const SkTDArray<class SkOpContour* >* contours, int segmentID); |
237 void DumpSpan(const SkTDArray<class SkOpContour* >* contours, int spanID); | 233 void DumpSpan(const SkTDArray<class SkOpContour* >* contours, int spanID); |
238 void DumpSpans(const SkTDArray<class SkOpContour* >* contours); | 234 void DumpSpans(const SkTDArray<class SkOpContour* >* contours); |
239 #endif | 235 #endif |
OLD | NEW |