| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 #define DEBUG_WIND_BUMP 0 | 96 #define DEBUG_WIND_BUMP 0 |
| 97 #define DEBUG_WINDING 1 | 97 #define DEBUG_WINDING 1 |
| 98 #define DEBUG_WINDING_AT_T 1 | 98 #define DEBUG_WINDING_AT_T 1 |
| 99 | 99 |
| 100 #endif | 100 #endif |
| 101 | 101 |
| 102 #define DEBUG_DUMP (DEBUG_ACTIVE_OP | DEBUG_ACTIVE_SPANS | DEBUG_CONCIDENT | DEB
UG_SORT | \ | 102 #define DEBUG_DUMP (DEBUG_ACTIVE_OP | DEBUG_ACTIVE_SPANS | DEBUG_CONCIDENT | DEB
UG_SORT | \ |
| 103 DEBUG_SORT_SINGLE | DEBUG_PATH_CONSTRUCTION) | 103 DEBUG_SORT_SINGLE | DEBUG_PATH_CONSTRUCTION) |
| 104 | 104 |
| 105 #if DEBUG_AS_C_CODE | 105 #if DEBUG_AS_C_CODE |
| 106 #define CUBIC_DEBUG_STR "{{%1.17g,%1.17g}, {%1.17g,%1.17g}, {%1.17g,%1.17g}, {%1
.17g,%1.17g}}" | 106 #define CUBIC_DEBUG_STR "{{%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1
.9g}}" |
| 107 #define QUAD_DEBUG_STR "{{%1.17g,%1.17g}, {%1.17g,%1.17g}, {%1.17g,%1.17g}}" | 107 #define QUAD_DEBUG_STR "{{%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}}" |
| 108 #define LINE_DEBUG_STR "{{%1.17g,%1.17g}, {%1.17g,%1.17g}}" | 108 #define LINE_DEBUG_STR "{{%1.9g,%1.9g}, {%1.9g,%1.9g}}" |
| 109 #define PT_DEBUG_STR "{{%1.17g,%1.17g}}" | 109 #define PT_DEBUG_STR "{{%1.9g,%1.9g}}" |
| 110 #else | 110 #else |
| 111 #define CUBIC_DEBUG_STR "(%1.9g,%1.9g %1.9g,%1.9g %1.9g,%1.9g %1.9g,%1.9g)" | 111 #define CUBIC_DEBUG_STR "(%1.9g,%1.9g %1.9g,%1.9g %1.9g,%1.9g %1.9g,%1.9g)" |
| 112 #define QUAD_DEBUG_STR "(%1.9g,%1.9g %1.9g,%1.9g %1.9g,%1.9g)" | 112 #define QUAD_DEBUG_STR "(%1.9g,%1.9g %1.9g,%1.9g %1.9g,%1.9g)" |
| 113 #define LINE_DEBUG_STR "(%1.9g,%1.9g %1.9g,%1.9g)" | 113 #define LINE_DEBUG_STR "(%1.9g,%1.9g %1.9g,%1.9g)" |
| 114 #define PT_DEBUG_STR "(%1.9g,%1.9g)" | 114 #define PT_DEBUG_STR "(%1.9g,%1.9g)" |
| 115 #endif | 115 #endif |
| 116 #define T_DEBUG_STR(t, n) #t "[" #n "]=%1.9g" | 116 #define T_DEBUG_STR(t, n) #t "[" #n "]=%1.9g" |
| 117 #define TX_DEBUG_STR(t) #t "[%d]=%1.9g" | 117 #define TX_DEBUG_STR(t) #t "[%d]=%1.9g" |
| 118 #define CUBIC_DEBUG_DATA(c) c[0].fX, c[0].fY, c[1].fX, c[1].fY, c[2].fX, c[2].fY
, c[3].fX, c[3].fY | 118 #define CUBIC_DEBUG_DATA(c) c[0].fX, c[0].fY, c[1].fX, c[1].fY, c[2].fX, c[2].fY
, c[3].fX, c[3].fY |
| 119 #define QUAD_DEBUG_DATA(q) q[0].fX, q[0].fY, q[1].fX, q[1].fY, q[2].fX, q[2].fY | 119 #define QUAD_DEBUG_DATA(q) q[0].fX, q[0].fY, q[1].fX, q[1].fY, q[2].fX, q[2].fY |
| (...skipping 29 matching lines...) Expand all Loading... |
| 149 (reinterpret_cast<char* >(SkTLS::Get(PathOpsDebugCreateNameStr, PathOpsDebug
DeleteNameStr))) | 149 (reinterpret_cast<char* >(SkTLS::Get(PathOpsDebugCreateNameStr, PathOpsDebug
DeleteNameStr))) |
| 150 extern void DebugBumpTestName(char* ); | 150 extern void DebugBumpTestName(char* ); |
| 151 extern void DebugShowPath(const SkPath& one, const SkPath& two, SkPathOp op, con
st char* name); | 151 extern void DebugShowPath(const SkPath& one, const SkPath& two, SkPathOp op, con
st char* name); |
| 152 #endif | 152 #endif |
| 153 | 153 |
| 154 #ifndef DEBUG_TEST | 154 #ifndef DEBUG_TEST |
| 155 #define DEBUG_TEST 0 | 155 #define DEBUG_TEST 0 |
| 156 #endif | 156 #endif |
| 157 | 157 |
| 158 #endif | 158 #endif |
| OLD | NEW |