reed@google.com | 117cc39 | 2011-01-19 13:19:27 +0000 | [diff] [blame] | 1 | /* |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 2 | * Copyright 2010 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
reed@google.com | 117cc39 | 2011-01-19 13:19:27 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 8 | #ifndef GrUserConfig_DEFINED |
| 9 | #define GrUserConfig_DEFINED |
| 10 | |
| 11 | #if defined(GR_USER_CONFIG_FILE) |
| 12 | #error "default user config pulled in but GR_USER_CONFIG_FILE is defined." |
| 13 | #endif |
| 14 | |
bsalomon@google.com | 6438695 | 2013-02-08 21:22:44 +0000 | [diff] [blame] | 15 | /** |
commit-bot@chromium.org | 8341eb7 | 2014-05-07 20:51:05 +0000 | [diff] [blame] | 16 | * This gives a threshold in bytes of when to map a GrGeometryBuffer vs using |
bsalomon@google.com | 96e96df | 2011-10-10 14:49:29 +0000 | [diff] [blame] | 17 | * updateData. (Note the depending on the underlying 3D API the update functions |
commit-bot@chromium.org | 8341eb7 | 2014-05-07 20:51:05 +0000 | [diff] [blame] | 18 | * may always be implemented using a map) |
bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 19 | */ |
commit-bot@chromium.org | 8341eb7 | 2014-05-07 20:51:05 +0000 | [diff] [blame] | 20 | //#define GR_GEOM_BUFFER_MAP_THRESHOLD (1<<15) |
bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 21 | |
djsollen@google.com | 42041e6 | 2012-10-29 19:24:45 +0000 | [diff] [blame] | 22 | /** |
| 23 | * This gives a threshold in megabytes for the maximum size of the texture cache |
| 24 | * in vram. The value is only a default and can be overridden at runtime. |
| 25 | */ |
robertphillips@google.com | 4e5559a | 2013-10-30 17:04:16 +0000 | [diff] [blame] | 26 | //#define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96 |
| 27 | |
| 28 | /** |
skia.committer@gmail.com | 7ed98df | 2013-10-31 07:01:53 +0000 | [diff] [blame] | 29 | * This specifies the maximum number of textures the texture cache can hold |
robertphillips@google.com | 4e5559a | 2013-10-30 17:04:16 +0000 | [diff] [blame] | 30 | * in vram. The value is only a default and can be overridden at runtime. |
| 31 | */ |
| 32 | //#define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048 |
djsollen@google.com | 42041e6 | 2012-10-29 19:24:45 +0000 | [diff] [blame] | 33 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 34 | #endif |