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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 static void WindingPrintf(int winding); | 162 static void WindingPrintf(int winding); |
163 | 163 |
164 #if DEBUG_SHOW_TEST_NAME | 164 #if DEBUG_SHOW_TEST_NAME |
165 static void* CreateNameStr(); | 165 static void* CreateNameStr(); |
166 static void DeleteNameStr(void* v); | 166 static void DeleteNameStr(void* v); |
167 #define DEBUG_FILENAME_STRING_LENGTH 64 | 167 #define DEBUG_FILENAME_STRING_LENGTH 64 |
168 #define DEBUG_FILENAME_STRING (reinterpret_cast<char* >(SkTLS::Get(SkPathOpsDebu
g::CreateNameStr, \ | 168 #define DEBUG_FILENAME_STRING (reinterpret_cast<char* >(SkTLS::Get(SkPathOpsDebu
g::CreateNameStr, \ |
169 SkPathOpsDebug::DeleteNameStr))) | 169 SkPathOpsDebug::DeleteNameStr))) |
170 static void BumpTestName(char* ); | 170 static void BumpTestName(char* ); |
171 #endif | 171 #endif |
| 172 static void ShowOnePath(const SkPath& path, const char* name, bool includeDe
claration); |
172 static void ShowPath(const SkPath& one, const SkPath& two, SkPathOp op, cons
t char* name); | 173 static void ShowPath(const SkPath& one, const SkPath& two, SkPathOp op, cons
t char* name); |
173 static void DumpCoincidence(const SkTArray<class SkOpContour, true>& contour
s); | 174 static void DumpCoincidence(const SkTArray<class SkOpContour, true>& contour
s); |
174 static void DumpCoincidence(const SkTArray<class SkOpContour* , true>& conto
urs); | 175 static void DumpCoincidence(const SkTArray<class SkOpContour* , true>& conto
urs); |
175 static void DumpContours(const SkTArray<class SkOpContour, true>& contours); | 176 static void DumpContours(const SkTArray<class SkOpContour, true>& contours); |
176 static void DumpContours(const SkTArray<class SkOpContour* , true>& contours
); | 177 static void DumpContours(const SkTArray<class SkOpContour* , true>& contours
); |
177 static void DumpContourAngles(const SkTArray<class SkOpContour, true>& conto
urs); | 178 static void DumpContourAngles(const SkTArray<class SkOpContour, true>& conto
urs); |
178 static void DumpContourAngles(const SkTArray<class SkOpContour* , true>& con
tours); | 179 static void DumpContourAngles(const SkTArray<class SkOpContour* , true>& con
tours); |
179 static void DumpContourPt(const SkTArray<class SkOpContour, true>& contours,
int id); | 180 static void DumpContourPt(const SkTArray<class SkOpContour, true>& contours,
int id); |
180 static void DumpContourPt(const SkTArray<class SkOpContour* , true>& contour
s, int id); | 181 static void DumpContourPt(const SkTArray<class SkOpContour* , true>& contour
s, int id); |
181 static void DumpContourPts(const SkTArray<class SkOpContour, true>& contours
); | 182 static void DumpContourPts(const SkTArray<class SkOpContour, true>& contours
); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 void DumpSpan(const SkTArray<class SkOpContour* , true>& contours, int segmentID
); | 227 void DumpSpan(const SkTArray<class SkOpContour* , true>& contours, int segmentID
); |
227 void DumpSpan(const SkTArray<class SkOpContour, true>* contours, int segmentID); | 228 void DumpSpan(const SkTArray<class SkOpContour, true>* contours, int segmentID); |
228 void DumpSpan(const SkTArray<class SkOpContour* , true>* contours, int segmentID
); | 229 void DumpSpan(const SkTArray<class SkOpContour* , true>* contours, int segmentID
); |
229 | 230 |
230 // generates tools/path_sorter.htm and path_visualizer.htm compatible data | 231 // generates tools/path_sorter.htm and path_visualizer.htm compatible data |
231 void DumpQ(const struct SkDQuad& quad1, const struct SkDQuad& quad2, int testNo)
; | 232 void DumpQ(const struct SkDQuad& quad1, const struct SkDQuad& quad2, int testNo)
; |
232 | 233 |
233 void DumpT(const struct SkDQuad& quad, double t); | 234 void DumpT(const struct SkDQuad& quad, double t); |
234 | 235 |
235 #endif | 236 #endif |
OLD | NEW |