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 #define GR_CACHE_STATS 0 | 36 #ifdef SK_DEVELOPER |
| 37 #define GR_CACHE_STATS 1 |
| 38 #else |
| 39 #define GR_CACHE_STATS 0 |
| 40 #endif |
37 #endif | 41 #endif |
38 | 42 |
39 #if !defined(GR_GPU_STATS) | 43 #if !defined(GR_GPU_STATS) |
40 #define GR_GPU_STATS 0 | 44 #ifdef SK_DEVELOPER |
| 45 #define GR_GPU_STATS 1 |
| 46 #else |
| 47 #define GR_GPU_STATS 0 |
| 48 #endif |
41 #endif | 49 #endif |
42 | 50 |
43 /////////////////////////////////////////////////////////////////////////////// | 51 /////////////////////////////////////////////////////////////////////////////// |
44 /////////////////////////////////////////////////////////////////////////////// | 52 /////////////////////////////////////////////////////////////////////////////// |
45 | 53 |
46 #if defined(SK_BUILD_FOR_WIN32) | 54 #if defined(SK_BUILD_FOR_WIN32) |
47 // VC8 doesn't support stdint.h, so we define those types here. | 55 // VC8 doesn't support stdint.h, so we define those types here. |
48 typedef signed char int8_t; | 56 typedef signed char int8_t; |
49 typedef unsigned char uint8_t; | 57 typedef unsigned char uint8_t; |
50 typedef short int16_t; | 58 typedef short int16_t; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 * allocated on the stack for smaller memory requests. | 250 * allocated on the stack for smaller memory requests. |
243 * | 251 * |
244 * This is only used for memory buffers that are created and then passed through
to the | 252 * This is only used for memory buffers that are created and then passed through
to the |
245 * 3D API (e.g. as texture or geometry data) | 253 * 3D API (e.g. as texture or geometry data) |
246 */ | 254 */ |
247 #if !defined(GR_ALWAYS_ALLOCATE_ON_HEAP) | 255 #if !defined(GR_ALWAYS_ALLOCATE_ON_HEAP) |
248 #define GR_ALWAYS_ALLOCATE_ON_HEAP 0 | 256 #define GR_ALWAYS_ALLOCATE_ON_HEAP 0 |
249 #endif | 257 #endif |
250 | 258 |
251 #endif | 259 #endif |
OLD | NEW |