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

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

Issue 14798004: path ops -- fix skp bugs (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/pathops/SkPathOpsCommon.cpp ('k') | src/pathops/SkPathOpsDebug.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 "SkTypes.h" 11 #include "SkTypes.h"
11 12
12 #ifdef SK_RELEASE 13 #ifdef SK_RELEASE
13 #define FORCE_RELEASE 1 14 #define FORCE_RELEASE 1
14 #else 15 #else
15 #define FORCE_RELEASE 1 // set force release to 1 for multiple thread -- no deb ugging 16 #define FORCE_RELEASE 1 // set force release to 1 for multiple thread -- no deb ugging
16 #endif 17 #endif
17 18
18 #define ONE_OFF_DEBUG 0 19 #define ONE_OFF_DEBUG 0
19 #define ONE_OFF_DEBUG_MATHEMATICA 0 20 #define ONE_OFF_DEBUG_MATHEMATICA 0
(...skipping 15 matching lines...) Expand all
35 36
36 extern int gDebugMaxWindSum; 37 extern int gDebugMaxWindSum;
37 extern int gDebugMaxWindValue; 38 extern int gDebugMaxWindValue;
38 39
39 #endif 40 #endif
40 41
41 #if FORCE_RELEASE 42 #if FORCE_RELEASE
42 43
43 #define DEBUG_ACTIVE_OP 0 44 #define DEBUG_ACTIVE_OP 0
44 #define DEBUG_ACTIVE_SPANS 0 45 #define DEBUG_ACTIVE_SPANS 0
45 #define DEBUG_ACTIVE_SPANS_SHORT_FORM 0 46 #define DEBUG_ACTIVE_SPANS_FIRST_ONLY 0
47 #define DEBUG_ACTIVE_SPANS_SHORT_FORM 1
46 #define DEBUG_ADD_INTERSECTING_TS 0 48 #define DEBUG_ADD_INTERSECTING_TS 0
47 #define DEBUG_ADD_T_PAIR 0 49 #define DEBUG_ADD_T_PAIR 0
48 #define DEBUG_ANGLE 0 50 #define DEBUG_ANGLE 0
49 #define DEBUG_AS_C_CODE 1 51 #define DEBUG_AS_C_CODE 1
50 #define DEBUG_ASSEMBLE 0 52 #define DEBUG_ASSEMBLE 0
51 #define DEBUG_CONCIDENT 0 53 #define DEBUG_CONCIDENT 0
52 #define DEBUG_CROSS 0 54 #define DEBUG_CROSS 0
53 #define DEBUG_FLAT_QUADS 0 55 #define DEBUG_FLAT_QUADS 0
54 #define DEBUG_FLOW 0 56 #define DEBUG_FLOW 0
55 #define DEBUG_MARK_DONE 0 57 #define DEBUG_MARK_DONE 0
56 #define DEBUG_PATH_CONSTRUCTION 0 58 #define DEBUG_PATH_CONSTRUCTION 0
59 #define DEBUG_SHOW_PATH 0
57 #define DEBUG_SHOW_TEST_NAME 0 60 #define DEBUG_SHOW_TEST_NAME 0
58 #define DEBUG_SHOW_TEST_PROGRESS 0 61 #define DEBUG_SHOW_TEST_PROGRESS 0
59 #define DEBUG_SHOW_WINDING 0 62 #define DEBUG_SHOW_WINDING 0
60 #define DEBUG_SORT 0 63 #define DEBUG_SORT 0
64 #define DEBUG_SORT_SINGLE 0
61 #define DEBUG_SWAP_TOP 0 65 #define DEBUG_SWAP_TOP 0
62 #define DEBUG_UNSORTABLE 0 66 #define DEBUG_UNSORTABLE 0
63 #define DEBUG_WIND_BUMP 0 67 #define DEBUG_WIND_BUMP 0
64 #define DEBUG_WINDING 0 68 #define DEBUG_WINDING 0
65 #define DEBUG_WINDING_AT_T 0 69 #define DEBUG_WINDING_AT_T 0
66 70
67 #else 71 #else
68 72
69 #define DEBUG_ACTIVE_OP 1 73 #define DEBUG_ACTIVE_OP 1
70 #define DEBUG_ACTIVE_SPANS 1 74 #define DEBUG_ACTIVE_SPANS 1
75 #define DEBUG_ACTIVE_SPANS_FIRST_ONLY 0
71 #define DEBUG_ACTIVE_SPANS_SHORT_FORM 0 76 #define DEBUG_ACTIVE_SPANS_SHORT_FORM 0
72 #define DEBUG_ADD_INTERSECTING_TS 1 77 #define DEBUG_ADD_INTERSECTING_TS 1
73 #define DEBUG_ADD_T_PAIR 1 78 #define DEBUG_ADD_T_PAIR 1
74 #define DEBUG_ANGLE 1 79 #define DEBUG_ANGLE 1
75 #define DEBUG_AS_C_CODE 1 80 #define DEBUG_AS_C_CODE 1
76 #define DEBUG_ASSEMBLE 1 81 #define DEBUG_ASSEMBLE 1
77 #define DEBUG_CONCIDENT 1 82 #define DEBUG_CONCIDENT 1
78 #define DEBUG_CROSS 0 83 #define DEBUG_CROSS 0
79 #define DEBUG_FLAT_QUADS 0 84 #define DEBUG_FLAT_QUADS 0
80 #define DEBUG_FLOW 1 85 #define DEBUG_FLOW 1
81 #define DEBUG_MARK_DONE 1 86 #define DEBUG_MARK_DONE 1
82 #define DEBUG_PATH_CONSTRUCTION 1 87 #define DEBUG_PATH_CONSTRUCTION 1
88 #define DEBUG_SHOW_PATH 0
83 #define DEBUG_SHOW_TEST_NAME 1 89 #define DEBUG_SHOW_TEST_NAME 1
84 #define DEBUG_SHOW_TEST_PROGRESS 1 90 #define DEBUG_SHOW_TEST_PROGRESS 1
85 #define DEBUG_SHOW_WINDING 0 91 #define DEBUG_SHOW_WINDING 0
86 #define DEBUG_SORT 1 92 #define DEBUG_SORT 1
93 #define DEBUG_SORT_SINGLE 0
87 #define DEBUG_SWAP_TOP 1 94 #define DEBUG_SWAP_TOP 1
88 #define DEBUG_UNSORTABLE 1 95 #define DEBUG_UNSORTABLE 1
89 #define DEBUG_WIND_BUMP 0 96 #define DEBUG_WIND_BUMP 0
90 #define DEBUG_WINDING 1 97 #define DEBUG_WINDING 1
91 #define DEBUG_WINDING_AT_T 1 98 #define DEBUG_WINDING_AT_T 1
92 99
93 #endif 100 #endif
94 101
95 #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 | \
96 DEBUG_PATH_CONSTRUCTION) 103 DEBUG_SORT_SINGLE | DEBUG_PATH_CONSTRUCTION)
97 104
98 #if DEBUG_AS_C_CODE 105 #if DEBUG_AS_C_CODE
99 #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.17g,%1.17g}, {%1.17g,%1.17g}, {%1.17g,%1.17g}, {%1 .17g,%1.17g}}"
100 #define QUAD_DEBUG_STR "{{%1.17g,%1.17g}, {%1.17g,%1.17g}, {%1.17g,%1.17g}}" 107 #define QUAD_DEBUG_STR "{{%1.17g,%1.17g}, {%1.17g,%1.17g}, {%1.17g,%1.17g}}"
101 #define LINE_DEBUG_STR "{{%1.17g,%1.17g}, {%1.17g,%1.17g}}" 108 #define LINE_DEBUG_STR "{{%1.17g,%1.17g}, {%1.17g,%1.17g}}"
102 #define PT_DEBUG_STR "{{%1.17g,%1.17g}}" 109 #define PT_DEBUG_STR "{{%1.17g,%1.17g}}"
103 #else 110 #else
104 #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)"
105 #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)"
106 #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)"
(...skipping 22 matching lines...) Expand all
129 #endif 136 #endif
130 137
131 #if DEBUG_ACTIVE_OP 138 #if DEBUG_ACTIVE_OP
132 extern const char* kPathOpStr[]; 139 extern const char* kPathOpStr[];
133 #endif 140 #endif
134 141
135 #ifndef DEBUG_TEST 142 #ifndef DEBUG_TEST
136 #define DEBUG_TEST 0 143 #define DEBUG_TEST 0
137 #endif 144 #endif
138 145
146 #if DEBUG_SHOW_PATH
147 void ShowPath(const SkPath& path, const char* pathName);
148 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo);
139 #endif 149 #endif
150
151 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsCommon.cpp ('k') | src/pathops/SkPathOpsDebug.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698