| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // hack to ensure we know what sort of Apple platform we're on | 26 // hack to ensure we know what sort of Apple platform we're on |
| 27 #if defined(__APPLE_CPP__) || defined(__APPLE_CC__) | 27 #if defined(__APPLE_CPP__) || defined(__APPLE_CC__) |
| 28 #include <TargetConditionals.h> | 28 #include <TargetConditionals.h> |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * Gr defines are set to 0 or 1, rather than being undefined or defined | 32 * Gr defines are set to 0 or 1, rather than being undefined or defined |
| 33 */ | 33 */ |
| 34 | 34 |
| 35 #if !defined(GR_CACHE_STATS) | 35 #if !defined(GR_CACHE_STATS) |
| 36 #if defined(SK_DEVELOPER) || defined(SK_DEBUG) || defined(SK_DUMP_STATS) | 36 #if defined(SK_DEBUG) || defined(SK_DUMP_STATS) |
| 37 #define GR_CACHE_STATS 1 | 37 #define GR_CACHE_STATS 1 |
| 38 #else | 38 #else |
| 39 #define GR_CACHE_STATS 0 | 39 #define GR_CACHE_STATS 0 |
| 40 #endif | 40 #endif |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 #if !defined(GR_GPU_STATS) | 43 #if !defined(GR_GPU_STATS) |
| 44 #if defined(SK_DEVELOPER) || defined(SK_DEBUG) || defined(SK_DUMP_STATS) | 44 #if defined(SK_DEBUG) || defined(SK_DUMP_STATS) |
| 45 #define GR_GPU_STATS 1 | 45 #define GR_GPU_STATS 1 |
| 46 #else | 46 #else |
| 47 #define GR_GPU_STATS 0 | 47 #define GR_GPU_STATS 0 |
| 48 #endif | 48 #endif |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 /////////////////////////////////////////////////////////////////////////////// | 51 /////////////////////////////////////////////////////////////////////////////// |
| 52 /////////////////////////////////////////////////////////////////////////////// | 52 /////////////////////////////////////////////////////////////////////////////// |
| 53 | 53 |
| 54 #if defined(SK_BUILD_FOR_WIN32) | 54 #if defined(SK_BUILD_FOR_WIN32) |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 #define GR_STATIC_ASSERT(CONDITION) static_assert(CONDITION, "bug") | 174 #define GR_STATIC_ASSERT(CONDITION) static_assert(CONDITION, "bug") |
| 175 | 175 |
| 176 /** | 176 /** |
| 177 * Set to 1 to enable pixel local storage path rendering on supported devices. | 177 * Set to 1 to enable pixel local storage path rendering on supported devices. |
| 178 */ | 178 */ |
| 179 #if !defined(GR_ENABLE_PLS_PATH_RENDERING) | 179 #if !defined(GR_ENABLE_PLS_PATH_RENDERING) |
| 180 #define GR_ENABLE_PLS_PATH_RENDERING 0 | 180 #define GR_ENABLE_PLS_PATH_RENDERING 0 |
| 181 #endif | 181 #endif |
| 182 | 182 |
| 183 #endif | 183 #endif |
| OLD | NEW |