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 | 12 |
13 #include <stdlib.h> | 13 #include <stdlib.h> |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 | 15 |
16 enum class SkOpPhase : char; | 16 enum class SkOpPhase : char; |
17 class SkOpContourHead; | 17 class SkOpContourHead; |
18 | 18 |
19 #ifdef SK_RELEASE | 19 #ifdef SK_RELEASE |
20 #define FORCE_RELEASE 1 | 20 #define FORCE_RELEASE 1 |
21 #else | 21 #else |
22 #define FORCE_RELEASE 1 // set force release to 1 for multiple thread -- no deb
ugging | 22 #define FORCE_RELEASE 1 // set force release to 1 for multiple thread -- no deb
ugging |
23 #endif | 23 #endif |
24 | 24 |
25 #define DEBUG_UNDER_DEVELOPMENT 1 | 25 #define DEBUG_UNDER_DEVELOPMENT 0 |
26 | 26 |
27 #define ONE_OFF_DEBUG 0 | 27 #define ONE_OFF_DEBUG 0 |
28 #define ONE_OFF_DEBUG_MATHEMATICA 0 | 28 #define ONE_OFF_DEBUG_MATHEMATICA 0 |
29 | 29 |
30 #if defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_ANDROID) | 30 #if defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_ANDROID) |
31 #define SK_RAND(seed) rand() | 31 #define SK_RAND(seed) rand() |
32 #else | 32 #else |
33 #define SK_RAND(seed) rand_r(&seed) | 33 #define SK_RAND(seed) rand_r(&seed) |
34 #endif | 34 #endif |
35 #ifdef SK_BUILD_FOR_WIN | 35 #ifdef SK_BUILD_FOR_WIN |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 #endif | 373 #endif |
374 }; | 374 }; |
375 | 375 |
376 struct SkDQuad; | 376 struct SkDQuad; |
377 | 377 |
378 // generates tools/path_sorter.htm and path_visualizer.htm compatible data | 378 // generates tools/path_sorter.htm and path_visualizer.htm compatible data |
379 void DumpQ(const SkDQuad& quad1, const SkDQuad& quad2, int testNo); | 379 void DumpQ(const SkDQuad& quad1, const SkDQuad& quad2, int testNo); |
380 void DumpT(const SkDQuad& quad, double t); | 380 void DumpT(const SkDQuad& quad, double t); |
381 | 381 |
382 #endif | 382 #endif |
OLD | NEW |