| 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" |
| 11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
| 12 #include <stdio.h> | 12 #include <stdio.h> |
| 13 | 13 |
| 14 #ifdef SK_RELEASE | 14 #ifdef SK_RELEASE |
| 15 #define FORCE_RELEASE 1 | 15 #define FORCE_RELEASE 1 |
| 16 #else | 16 #else |
| 17 #define FORCE_RELEASE 1 // set force release to 1 for multiple thread -- no deb
ugging | 17 #define FORCE_RELEASE 1 // set force release to 1 for multiple thread -- no deb
ugging |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 #define ONE_OFF_DEBUG 0 | 20 #define ONE_OFF_DEBUG 0 |
| 21 #define ONE_OFF_DEBUG_MATHEMATICA 0 | 21 #define ONE_OFF_DEBUG_MATHEMATICA 01 |
| 22 | 22 |
| 23 #if defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_ANDROID) | 23 #if defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_ANDROID) |
| 24 #define SK_RAND(seed) rand() | 24 #define SK_RAND(seed) rand() |
| 25 #else | 25 #else |
| 26 #define SK_RAND(seed) rand_r(&seed) | 26 #define SK_RAND(seed) rand_r(&seed) |
| 27 #endif | 27 #endif |
| 28 #ifdef SK_BUILD_FOR_WIN | 28 #ifdef SK_BUILD_FOR_WIN |
| 29 #define SK_SNPRINTF _snprintf | 29 #define SK_SNPRINTF _snprintf |
| 30 #else | 30 #else |
| 31 #define SK_SNPRINTF snprintf | 31 #define SK_SNPRINTF snprintf |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 void DumpSpans(const SkTArray<class SkOpContour* , true>& contours); | 208 void DumpSpans(const SkTArray<class SkOpContour* , true>& contours); |
| 209 void DumpSpans(const SkTArray<class SkOpContour, true>* contours); | 209 void DumpSpans(const SkTArray<class SkOpContour, true>* contours); |
| 210 void DumpSpans(const SkTArray<class SkOpContour* , true>* contours); | 210 void DumpSpans(const SkTArray<class SkOpContour* , true>* contours); |
| 211 | 211 |
| 212 // generates tools/path_sorter.htm and path_visualizer.htm compatible data | 212 // generates tools/path_sorter.htm and path_visualizer.htm compatible data |
| 213 void DumpQ(const struct SkDQuad& quad1, const struct SkDQuad& quad2, int testNo)
; | 213 void DumpQ(const struct SkDQuad& quad1, const struct SkDQuad& quad2, int testNo)
; |
| 214 | 214 |
| 215 void DumpT(const struct SkDQuad& quad, double t); | 215 void DumpT(const struct SkDQuad& quad, double t); |
| 216 | 216 |
| 217 #endif | 217 #endif |
| OLD | NEW |