Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Side by Side Diff: src/pathops/SkPathOpsDebug.h

Issue 2338323002: quad and conic do not intersect (Closed)
Patch Set: turn off under development Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pathops/SkPathOpsCurve.cpp ('k') | src/pathops/SkPathOpsQuad.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 19 matching lines...) Expand all
70 70
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 1
81 #define DEBUG_COINCIDENCE_ORDER 0 // tight arc quads may generate out-of-order coincdence spans 81 #define DEBUG_COINCIDENCE_ORDER 0 // tight arc quads may generate out-of-order coincdence spans
82 #define DEBUG_COINCIDENCE_VERBOSE 0 82 #define DEBUG_COINCIDENCE_VERBOSE 0
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
92 #define DEBUG_SORT 1 92 #define DEBUG_SORT 1
93 #define DEBUG_T_SECT 0 93 #define DEBUG_T_SECT 0
94 #define DEBUG_T_SECT_DUMP 0 94 #define DEBUG_T_SECT_DUMP 0 // Use 1 normally. Use 2 to number segments, 3 for script output
95 #define DEBUG_T_SECT_LOOP_COUNT 0 95 #define DEBUG_T_SECT_LOOP_COUNT 0
96 #define DEBUG_VALIDATE 1 96 #define DEBUG_VALIDATE 1
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 #ifdef SK_RELEASE 102 #ifdef SK_RELEASE
103 #define SkDEBUGRELEASE(a, b) b 103 #define SkDEBUGRELEASE(a, b) b
104 #define SkDEBUGPARAMS(...) 104 #define SkDEBUGPARAMS(...)
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsCurve.cpp ('k') | src/pathops/SkPathOpsQuad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698