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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 #define DEBUG_MARK_DONE 0 | 57 #define DEBUG_MARK_DONE 0 |
58 #define DEBUG_PATH_CONSTRUCTION 0 | 58 #define DEBUG_PATH_CONSTRUCTION 0 |
59 #define DEBUG_SHOW_TEST_NAME 0 | 59 #define DEBUG_SHOW_TEST_NAME 0 |
60 #define DEBUG_SHOW_TEST_PROGRESS 0 | 60 #define DEBUG_SHOW_TEST_PROGRESS 0 |
61 #define DEBUG_SHOW_WINDING 0 | 61 #define DEBUG_SHOW_WINDING 0 |
62 #define DEBUG_SORT 0 | 62 #define DEBUG_SORT 0 |
63 #define DEBUG_SORT_COMPACT 0 | 63 #define DEBUG_SORT_COMPACT 0 |
64 #define DEBUG_SORT_SINGLE 0 | 64 #define DEBUG_SORT_SINGLE 0 |
65 #define DEBUG_SWAP_TOP 0 | 65 #define DEBUG_SWAP_TOP 0 |
66 #define DEBUG_UNSORTABLE 0 | 66 #define DEBUG_UNSORTABLE 0 |
| 67 #define DEBUG_VALIDATE 0 |
67 #define DEBUG_WIND_BUMP 0 | 68 #define DEBUG_WIND_BUMP 0 |
68 #define DEBUG_WINDING 0 | 69 #define DEBUG_WINDING 0 |
69 #define DEBUG_WINDING_AT_T 0 | 70 #define DEBUG_WINDING_AT_T 0 |
70 | 71 |
71 #else | 72 #else |
72 | 73 |
73 #define DEBUG_ACTIVE_OP 1 | 74 #define DEBUG_ACTIVE_OP 1 |
74 #define DEBUG_ACTIVE_SPANS 1 | 75 #define DEBUG_ACTIVE_SPANS 1 |
75 #define DEBUG_ACTIVE_SPANS_FIRST_ONLY 0 | 76 #define DEBUG_ACTIVE_SPANS_FIRST_ONLY 0 |
76 #define DEBUG_ACTIVE_SPANS_SHORT_FORM 1 | 77 #define DEBUG_ACTIVE_SPANS_SHORT_FORM 1 |
77 #define DEBUG_ADD_INTERSECTING_TS 1 | 78 #define DEBUG_ADD_INTERSECTING_TS 1 |
78 #define DEBUG_ADD_T_PAIR 1 | 79 #define DEBUG_ADD_T_PAIR 1 |
79 #define DEBUG_ANGLE 1 | 80 #define DEBUG_ANGLE 1 |
80 #define DEBUG_AS_C_CODE 1 | 81 #define DEBUG_AS_C_CODE 1 |
81 #define DEBUG_ASSEMBLE 1 | 82 #define DEBUG_ASSEMBLE 1 |
82 #define DEBUG_CONCIDENT 1 | 83 #define DEBUG_CONCIDENT 1 |
83 #define DEBUG_CROSS 0 | 84 #define DEBUG_CROSS 0 |
84 #define DEBUG_FLAT_QUADS 0 | 85 #define DEBUG_FLAT_QUADS 0 |
85 #define DEBUG_FLOW 1 | 86 #define DEBUG_FLOW 1 |
86 #define DEBUG_MARK_DONE 1 | 87 #define DEBUG_MARK_DONE 1 |
87 #define DEBUG_PATH_CONSTRUCTION 1 | 88 #define DEBUG_PATH_CONSTRUCTION 1 |
88 #define DEBUG_SHOW_TEST_NAME 1 | 89 #define DEBUG_SHOW_TEST_NAME 1 |
89 #define DEBUG_SHOW_TEST_PROGRESS 1 | 90 #define DEBUG_SHOW_TEST_PROGRESS 1 |
90 #define DEBUG_SHOW_WINDING 0 | 91 #define DEBUG_SHOW_WINDING 0 |
91 #define DEBUG_SORT 1 | 92 #define DEBUG_SORT 1 |
92 #define DEBUG_SORT_COMPACT 0 | 93 #define DEBUG_SORT_COMPACT 0 |
93 #define DEBUG_SORT_SINGLE 0 | 94 #define DEBUG_SORT_SINGLE 0 |
94 #define DEBUG_SWAP_TOP 1 | 95 #define DEBUG_SWAP_TOP 1 |
95 #define DEBUG_UNSORTABLE 1 | 96 #define DEBUG_UNSORTABLE 1 |
| 97 #define DEBUG_VALIDATE 1 |
96 #define DEBUG_WIND_BUMP 0 | 98 #define DEBUG_WIND_BUMP 0 |
97 #define DEBUG_WINDING 1 | 99 #define DEBUG_WINDING 1 |
98 #define DEBUG_WINDING_AT_T 1 | 100 #define DEBUG_WINDING_AT_T 1 |
99 | 101 |
100 #endif | 102 #endif |
101 | 103 |
102 #define DEBUG_DUMP (DEBUG_ACTIVE_OP | DEBUG_ACTIVE_SPANS | DEBUG_CONCIDENT | DEB
UG_SORT | \ | 104 #define DEBUG_DUMP (DEBUG_ACTIVE_OP | DEBUG_ACTIVE_SPANS | DEBUG_CONCIDENT | DEB
UG_SORT | \ |
103 DEBUG_SORT_SINGLE | DEBUG_PATH_CONSTRUCTION) | 105 DEBUG_SORT_SINGLE | DEBUG_PATH_CONSTRUCTION) |
104 | 106 |
105 #if DEBUG_AS_C_CODE | 107 #if DEBUG_AS_C_CODE |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 (reinterpret_cast<char* >(SkTLS::Get(PathOpsDebugCreateNameStr, PathOpsDebug
DeleteNameStr))) | 151 (reinterpret_cast<char* >(SkTLS::Get(PathOpsDebugCreateNameStr, PathOpsDebug
DeleteNameStr))) |
150 extern void DebugBumpTestName(char* ); | 152 extern void DebugBumpTestName(char* ); |
151 extern void DebugShowPath(const SkPath& one, const SkPath& two, SkPathOp op, con
st char* name); | 153 extern void DebugShowPath(const SkPath& one, const SkPath& two, SkPathOp op, con
st char* name); |
152 #endif | 154 #endif |
153 | 155 |
154 #ifndef DEBUG_TEST | 156 #ifndef DEBUG_TEST |
155 #define DEBUG_TEST 0 | 157 #define DEBUG_TEST 0 |
156 #endif | 158 #endif |
157 | 159 |
158 #endif | 160 #endif |
OLD | NEW |