| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 #ifdef SK_RELEASE | 88 #ifdef SK_RELEASE |
| 89 #define SkDEBUGRELEASE(a, b) b | 89 #define SkDEBUGRELEASE(a, b) b |
| 90 #define SkDEBUGPARAMS(...) | 90 #define SkDEBUGPARAMS(...) |
| 91 #define SkDEBUGCODE_(...) | 91 #define SkDEBUGCODE_(...) |
| 92 #else | 92 #else |
| 93 #define SkDEBUGRELEASE(a, b) a | 93 #define SkDEBUGRELEASE(a, b) a |
| 94 #define SkDEBUGPARAMS(...) , __VA_ARGS__ | 94 #define SkDEBUGPARAMS(...) , __VA_ARGS__ |
| 95 #define SkDEBUGCODE_(...) __VA_ARGS__ // temporary until SkDEBUGCODE is fix
ed | 95 #define SkDEBUGCODE_(...) __VA_ARGS__ // temporary until SkDEBUGCODE is fix
ed |
| 96 #endif | 96 #endif |
| 97 | 97 |
| 98 #if DEBUG_VALIDATE == 0 |
| 99 #define PATH_OPS_DEBUG_VALIDATE_PARAMS(...) |
| 100 #else |
| 101 #define PATH_OPS_DEBUG_VALIDATE_PARAMS(...) , __VA_ARGS__ |
| 102 #endif |
| 103 |
| 98 #if DEBUG_T_SECT == 0 | 104 #if DEBUG_T_SECT == 0 |
| 99 #define PATH_OPS_DEBUG_T_SECT_RELEASE(a, b) b | 105 #define PATH_OPS_DEBUG_T_SECT_RELEASE(a, b) b |
| 100 #define PATH_OPS_DEBUG_T_SECT_PARAMS(...) | 106 #define PATH_OPS_DEBUG_T_SECT_PARAMS(...) |
| 101 #define PATH_OPS_DEBUG_T_SECT_CODE(...) | 107 #define PATH_OPS_DEBUG_T_SECT_CODE(...) |
| 102 #else | 108 #else |
| 103 #define PATH_OPS_DEBUG_T_SECT_RELEASE(a, b) a | 109 #define PATH_OPS_DEBUG_T_SECT_RELEASE(a, b) a |
| 104 #define PATH_OPS_DEBUG_T_SECT_PARAMS(...) , __VA_ARGS__ | 110 #define PATH_OPS_DEBUG_T_SECT_PARAMS(...) , __VA_ARGS__ |
| 105 #define PATH_OPS_DEBUG_T_SECT_CODE(...) __VA_ARGS__ | 111 #define PATH_OPS_DEBUG_T_SECT_CODE(...) __VA_ARGS__ |
| 106 #endif | 112 #endif |
| 107 | 113 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 static const class SkOpPtT* DebugAnglePtT(const struct SkOpAngle*, int id); | 178 static const class SkOpPtT* DebugAnglePtT(const struct SkOpAngle*, int id); |
| 173 static const class SkOpSegment* DebugAngleSegment(const struct SkOpAngle*, i
nt id); | 179 static const class SkOpSegment* DebugAngleSegment(const struct SkOpAngle*, i
nt id); |
| 174 static const class SkOpSpanBase* DebugAngleSpan(const struct SkOpAngle*, int
id); | 180 static const class SkOpSpanBase* DebugAngleSpan(const struct SkOpAngle*, int
id); |
| 175 | 181 |
| 176 static const struct SkOpAngle* DebugContourAngle(class SkOpContour*, int id)
; | 182 static const struct SkOpAngle* DebugContourAngle(class SkOpContour*, int id)
; |
| 177 static class SkOpContour* DebugContourContour(class SkOpContour*, int id); | 183 static class SkOpContour* DebugContourContour(class SkOpContour*, int id); |
| 178 static const class SkOpPtT* DebugContourPtT(class SkOpContour*, int id); | 184 static const class SkOpPtT* DebugContourPtT(class SkOpContour*, int id); |
| 179 static const class SkOpSegment* DebugContourSegment(class SkOpContour*, int
id); | 185 static const class SkOpSegment* DebugContourSegment(class SkOpContour*, int
id); |
| 180 static const class SkOpSpanBase* DebugContourSpan(class SkOpContour*, int id
); | 186 static const class SkOpSpanBase* DebugContourSpan(class SkOpContour*, int id
); |
| 181 | 187 |
| 188 static const struct SkOpAngle* DebugCoincidenceAngle(class SkOpCoincidence*,
int id); |
| 189 static class SkOpContour* DebugCoincidenceContour(class SkOpCoincidence*, in
t id); |
| 190 static const class SkOpPtT* DebugCoincidencePtT(class SkOpCoincidence*, int
id); |
| 191 static const class SkOpSegment* DebugCoincidenceSegment(class SkOpCoincidenc
e*, int id); |
| 192 static const class SkOpSpanBase* DebugCoincidenceSpan(class SkOpCoincidence*
, int id); |
| 193 |
| 182 static const struct SkOpAngle* DebugPtTAngle(const class SkOpPtT*, int id); | 194 static const struct SkOpAngle* DebugPtTAngle(const class SkOpPtT*, int id); |
| 183 static class SkOpContour* DebugPtTContour(class SkOpPtT*, int id); | 195 static class SkOpContour* DebugPtTContour(class SkOpPtT*, int id); |
| 184 static const class SkOpPtT* DebugPtTPtT(const class SkOpPtT*, int id); | 196 static const class SkOpPtT* DebugPtTPtT(const class SkOpPtT*, int id); |
| 185 static const class SkOpSegment* DebugPtTSegment(const class SkOpPtT*, int id
); | 197 static const class SkOpSegment* DebugPtTSegment(const class SkOpPtT*, int id
); |
| 186 static const class SkOpSpanBase* DebugPtTSpan(const class SkOpPtT*, int id); | 198 static const class SkOpSpanBase* DebugPtTSpan(const class SkOpPtT*, int id); |
| 187 | 199 |
| 188 static const struct SkOpAngle* DebugSegmentAngle(const class SkOpSegment*, i
nt id); | 200 static const struct SkOpAngle* DebugSegmentAngle(const class SkOpSegment*, i
nt id); |
| 189 static class SkOpContour* DebugSegmentContour(class SkOpSegment*, int id); | 201 static class SkOpContour* DebugSegmentContour(class SkOpSegment*, int id); |
| 190 static const class SkOpPtT* DebugSegmentPtT(const class SkOpSegment*, int id
); | 202 static const class SkOpPtT* DebugSegmentPtT(const class SkOpSegment*, int id
); |
| 191 static const class SkOpSegment* DebugSegmentSegment(const class SkOpSegment*
, int id); | 203 static const class SkOpSegment* DebugSegmentSegment(const class SkOpSegment*
, int id); |
| 192 static const class SkOpSpanBase* DebugSegmentSpan(const class SkOpSegment*,
int id); | 204 static const class SkOpSpanBase* DebugSegmentSpan(const class SkOpSegment*,
int id); |
| 193 | 205 |
| 194 static const struct SkOpAngle* DebugSpanAngle(const class SkOpSpanBase*, int
id); | 206 static const struct SkOpAngle* DebugSpanAngle(const class SkOpSpanBase*, int
id); |
| 195 static class SkOpContour* DebugSpanContour(class SkOpSpanBase*, int id); | 207 static class SkOpContour* DebugSpanContour(class SkOpSpanBase*, int id); |
| 196 static const class SkOpPtT* DebugSpanPtT(const class SkOpSpanBase*, int id); | 208 static const class SkOpPtT* DebugSpanPtT(const class SkOpSpanBase*, int id); |
| 197 static const class SkOpSegment* DebugSpanSegment(const class SkOpSpanBase*,
int id); | 209 static const class SkOpSegment* DebugSpanSegment(const class SkOpSpanBase*,
int id); |
| 198 static const class SkOpSpanBase* DebugSpanSpan(const class SkOpSpanBase*, in
t id); | 210 static const class SkOpSpanBase* DebugSpanSpan(const class SkOpSpanBase*, in
t id); |
| 199 }; | 211 }; |
| 200 | 212 |
| 201 struct SkDQuad; | 213 struct SkDQuad; |
| 202 | 214 |
| 203 // generates tools/path_sorter.htm and path_visualizer.htm compatible data | 215 // generates tools/path_sorter.htm and path_visualizer.htm compatible data |
| 204 void DumpQ(const SkDQuad& quad1, const SkDQuad& quad2, int testNo); | 216 void DumpQ(const SkDQuad& quad1, const SkDQuad& quad2, int testNo); |
| 205 void DumpT(const SkDQuad& quad, double t); | 217 void DumpT(const SkDQuad& quad, double t); |
| 206 | 218 |
| 207 #endif | 219 #endif |
| OLD | NEW |