| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | |
| 10 #ifndef GrUserConfig_DEFINED | 8 #ifndef GrUserConfig_DEFINED |
| 11 #define GrUserConfig_DEFINED | 9 #define GrUserConfig_DEFINED |
| 12 | 10 |
| 13 #if defined(GR_USER_CONFIG_FILE) | 11 #if defined(GR_USER_CONFIG_FILE) |
| 14 #error "default user config pulled in but GR_USER_CONFIG_FILE is defined." | 12 #error "default user config pulled in but GR_USER_CONFIG_FILE is defined." |
| 15 #endif | 13 #endif |
| 16 | 14 |
| 17 #if 0 | |
| 18 #undef GR_RELEASE | |
| 19 #undef GR_DEBUG | |
| 20 #define GR_RELEASE 0 | |
| 21 #define GR_DEBUG 1 | |
| 22 #endif | |
| 23 | |
| 24 /** | 15 /** |
| 25 * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using | 16 * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using |
| 26 * updateData. (Note the depending on the underlying 3D API the update functions | 17 * updateData. (Note the depending on the underlying 3D API the update functions |
| 27 * may always be implemented using a lock) | 18 * may always be implemented using a lock) |
| 28 */ | 19 */ |
| 29 //#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15) | 20 //#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15) |
| 30 | 21 |
| 31 /** | 22 /** |
| 32 * This gives a threshold in megabytes for the maximum size of the texture cache | 23 * This gives a threshold in megabytes for the maximum size of the texture cache |
| 33 * in vram. The value is only a default and can be overridden at runtime. | 24 * in vram. The value is only a default and can be overridden at runtime. |
| 34 */ | 25 */ |
| 35 //#define GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT 96 | 26 //#define GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT 96 |
| 36 | 27 |
| 37 #endif | 28 #endif |
| OLD | NEW |