epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
reed@google.com | 117cc39 | 2011-01-19 13:19:27 +0000 | [diff] [blame] | 2 | /* |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 3 | * Copyright 2010 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
reed@google.com | 117cc39 | 2011-01-19 13:19:27 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 9 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 10 | #ifndef GrUserConfig_DEFINED |
| 11 | #define GrUserConfig_DEFINED |
| 12 | |
| 13 | #if defined(GR_USER_CONFIG_FILE) |
| 14 | #error "default user config pulled in but GR_USER_CONFIG_FILE is defined." |
| 15 | #endif |
| 16 | |
| 17 | #if 0 |
| 18 | #undef GR_RELEASE |
| 19 | #undef GR_DEBUG |
| 20 | #define GR_RELEASE 0 |
| 21 | #define GR_DEBUG 1 |
| 22 | #endif |
| 23 | |
bsalomon@google.com | 6438695 | 2013-02-08 21:22:44 +0000 | [diff] [blame] | 24 | /** |
bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 25 | * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using |
bsalomon@google.com | 96e96df | 2011-10-10 14:49:29 +0000 | [diff] [blame] | 26 | * updateData. (Note the depending on the underlying 3D API the update functions |
| 27 | * may always be implemented using a lock) |
bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 28 | */ |
| 29 | //#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15) |
| 30 | |
djsollen@google.com | 42041e6 | 2012-10-29 19:24:45 +0000 | [diff] [blame] | 31 | /** |
| 32 | * 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. |
| 34 | */ |
| 35 | //#define GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT 96 |
| 36 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 37 | #endif |