| 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 0 // 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 0 |
| 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 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 // shorthand for calling from debugger | 167 // shorthand for calling from debugger |
| 168 void Dump(const SkTArray<class SkOpAngle, true>& angles); | 168 void Dump(const SkTArray<class SkOpAngle, true>& angles); |
| 169 void Dump(const SkTArray<class SkOpAngle* , true>& angles); | 169 void Dump(const SkTArray<class SkOpAngle* , true>& angles); |
| 170 void Dump(const SkTArray<class SkOpAngle, true>* angles); | 170 void Dump(const SkTArray<class SkOpAngle, true>* angles); |
| 171 void Dump(const SkTArray<class SkOpAngle* , true>* angles); | 171 void Dump(const SkTArray<class SkOpAngle* , true>* angles); |
| 172 | 172 |
| 173 #endif // SK_DEBUG || !FORCE_RELEASE | 173 #endif // SK_DEBUG || !FORCE_RELEASE |
| 174 | 174 |
| 175 #endif | 175 #endif |
| OLD | NEW |