| 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 #ifdef SK_BUILD_FOR_WIN | 30 #ifdef SK_BUILD_FOR_WIN |
| 31 #define SK_SNPRINTF _snprintf | 31 #define SK_SNPRINTF _snprintf |
| 32 #else | 32 #else |
| 33 #define SK_SNPRINTF snprintf | 33 #define SK_SNPRINTF snprintf |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 #define WIND_AS_STRING(x) char x##Str[12]; \ | 36 #define WIND_AS_STRING(x) char x##Str[12]; \ |
| 37 if (!SkPathOpsDebug::ValidWind(x)) strcpy(x##Str, "?"); \ | 37 if (!SkPathOpsDebug::ValidWind(x)) strcpy(x##Str, "?"); \ |
| 38 else SK_SNPRINTF(x##Str, sizeof(x##Str), "%d", x) | 38 else SK_SNPRINTF(x##Str, sizeof(x##Str), "%d", x) |
| 39 | 39 |
| 40 #define DEBUG_UNDER_DEVELOPMENT 01 | 40 #define DEBUG_UNDER_DEVELOPMENT 1 |
| 41 | 41 |
| 42 #if FORCE_RELEASE | 42 #if FORCE_RELEASE |
| 43 | 43 |
| 44 #define DEBUG_ACTIVE_OP 0 | 44 #define DEBUG_ACTIVE_OP 0 |
| 45 #define DEBUG_ACTIVE_SPANS 0 | 45 #define DEBUG_ACTIVE_SPANS 0 |
| 46 #define DEBUG_ADD_INTERSECTING_TS 0 | 46 #define DEBUG_ADD_INTERSECTING_TS 0 |
| 47 #define DEBUG_ADD_T 0 | 47 #define DEBUG_ADD_T 0 |
| 48 #define DEBUG_ALIGNMENT 0 | 48 #define DEBUG_ALIGNMENT 0 |
| 49 #define DEBUG_ANGLE 0 | 49 #define DEBUG_ANGLE 0 |
| 50 #define DEBUG_ASSEMBLE 0 | 50 #define DEBUG_ASSEMBLE 0 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 71 #else | 71 #else |
| 72 | 72 |
| 73 #define DEBUG_ACTIVE_OP 1 | 73 #define DEBUG_ACTIVE_OP 1 |
| 74 #define DEBUG_ACTIVE_SPANS 1 | 74 #define DEBUG_ACTIVE_SPANS 1 |
| 75 #define DEBUG_ADD_INTERSECTING_TS 1 | 75 #define DEBUG_ADD_INTERSECTING_TS 1 |
| 76 #define DEBUG_ADD_T 1 | 76 #define DEBUG_ADD_T 1 |
| 77 #define DEBUG_ALIGNMENT 0 | 77 #define DEBUG_ALIGNMENT 0 |
| 78 #define DEBUG_ANGLE 1 | 78 #define DEBUG_ANGLE 1 |
| 79 #define DEBUG_ASSEMBLE 1 | 79 #define DEBUG_ASSEMBLE 1 |
| 80 #define DEBUG_COINCIDENCE 01 | 80 #define DEBUG_COINCIDENCE 01 |
| 81 #define DEBUG_COINCIDENCE_ORDER 0 | 81 #define DEBUG_COINCIDENCE_ORDER 01 |
| 82 #define DEBUG_COINCIDENCE_VERBOSE 01 | 82 #define DEBUG_COINCIDENCE_VERBOSE 01 |
| 83 #define DEBUG_CUBIC_BINARY_SEARCH 0 | 83 #define DEBUG_CUBIC_BINARY_SEARCH 0 |
| 84 #define DEBUG_CUBIC_SPLIT 1 | 84 #define DEBUG_CUBIC_SPLIT 1 |
| 85 #define DEBUG_DUMP_SEGMENTS 1 | 85 #define DEBUG_DUMP_SEGMENTS 1 |
| 86 #define DEBUG_FLOW 1 | 86 #define DEBUG_FLOW 1 |
| 87 #define DEBUG_LIMIT_WIND_SUM 15 | 87 #define DEBUG_LIMIT_WIND_SUM 15 |
| 88 #define DEBUG_MARK_DONE 1 | 88 #define DEBUG_MARK_DONE 1 |
| 89 #define DEBUG_PATH_CONSTRUCTION 1 | 89 #define DEBUG_PATH_CONSTRUCTION 1 |
| 90 #define DEBUG_PERP 1 | 90 #define DEBUG_PERP 1 |
| 91 #define DEBUG_SHOW_TEST_NAME 1 | 91 #define DEBUG_SHOW_TEST_NAME 1 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 static const class SkOpSpanBase* DebugSpanSpan(const class SkOpSpanBase*, in
t id); | 248 static const class SkOpSpanBase* DebugSpanSpan(const class SkOpSpanBase*, in
t id); |
| 249 }; | 249 }; |
| 250 | 250 |
| 251 struct SkDQuad; | 251 struct SkDQuad; |
| 252 | 252 |
| 253 // generates tools/path_sorter.htm and path_visualizer.htm compatible data | 253 // generates tools/path_sorter.htm and path_visualizer.htm compatible data |
| 254 void DumpQ(const SkDQuad& quad1, const SkDQuad& quad2, int testNo); | 254 void DumpQ(const SkDQuad& quad1, const SkDQuad& quad2, int testNo); |
| 255 void DumpT(const SkDQuad& quad, double t); | 255 void DumpT(const SkDQuad& quad, double t); |
| 256 | 256 |
| 257 #endif | 257 #endif |
| OLD | NEW |