| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #endif | 65 #endif |
| 66 | 66 |
| 67 /* | 67 /* |
| 68 * The "user config" file can be empty, and everything should work. It is | 68 * The "user config" file can be empty, and everything should work. It is |
| 69 * meant to store a given platform/client's overrides of our guess-work. | 69 * meant to store a given platform/client's overrides of our guess-work. |
| 70 * | 70 * |
| 71 * A alternate user config file can be specified by defining | 71 * A alternate user config file can be specified by defining |
| 72 * GR_USER_CONFIG_FILE. It should be defined relative to GrConfig.h | 72 * GR_USER_CONFIG_FILE. It should be defined relative to GrConfig.h |
| 73 * | 73 * |
| 74 * e.g. it can change the BUILD target or supply its own defines for anything | 74 * e.g. it can change the BUILD target or supply its own defines for anything |
| 75 * else (e.g. GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT) | 75 * else (e.g. GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT) |
| 76 */ | 76 */ |
| 77 #if !defined(GR_USER_CONFIG_FILE) | 77 #if !defined(GR_USER_CONFIG_FILE) |
| 78 #include "GrUserConfig.h" | 78 #include "GrUserConfig.h" |
| 79 #else | 79 #else |
| 80 #include GR_USER_CONFIG_FILE | 80 #include GR_USER_CONFIG_FILE |
| 81 #endif | 81 #endif |
| 82 | 82 |
| 83 | 83 |
| 84 /////////////////////////////////////////////////////////////////////////////// | 84 /////////////////////////////////////////////////////////////////////////////// |
| 85 /////////////////////////////////////////////////////////////////////////////// | 85 /////////////////////////////////////////////////////////////////////////////// |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 * GR_GEOM_BUFFER_LOCK_THRESHOLD gives a threshold (in bytes) for when Gr should | 209 * GR_GEOM_BUFFER_LOCK_THRESHOLD gives a threshold (in bytes) for when Gr should |
| 210 * lock a GrGeometryBuffer to update its contents. It will use lock() if the | 210 * lock a GrGeometryBuffer to update its contents. It will use lock() if the |
| 211 * size of the updated region is greater than the threshold. Otherwise it will | 211 * size of the updated region is greater than the threshold. Otherwise it will |
| 212 * use updateData(). | 212 * use updateData(). |
| 213 */ | 213 */ |
| 214 #if !defined(GR_GEOM_BUFFER_LOCK_THRESHOLD) | 214 #if !defined(GR_GEOM_BUFFER_LOCK_THRESHOLD) |
| 215 #define GR_GEOM_BUFFER_LOCK_THRESHOLD (1 << 15) | 215 #define GR_GEOM_BUFFER_LOCK_THRESHOLD (1 << 15) |
| 216 #endif | 216 #endif |
| 217 | 217 |
| 218 /** | 218 /** |
| 219 * GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT gives a threshold (in megabytes) for the | 219 * GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT gives a threshold (in megabytes) for the |
| 220 * maximum size of the texture cache in vram. The value is only a default and | 220 * maximum size of the texture cache in vram. The value is only a default and |
| 221 * can be overridden at runtime. | 221 * can be overridden at runtime. |
| 222 */ | 222 */ |
| 223 #if !defined(GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT) | 223 #if !defined(GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT) |
| 224 #define GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT 96 | 224 #define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96 |
| 225 #endif |
| 226 |
| 227 /** |
| 228 * GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT specifies the maximum number of |
| 229 * textures the texture cache can hold in vram. The value is only a default and |
| 230 * can be overridden at runtime. |
| 231 */ |
| 232 #if !defined(GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT) |
| 233 #define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048 |
| 225 #endif | 234 #endif |
| 226 | 235 |
| 227 /** | 236 /** |
| 228 * GR_STROKE_PATH_RENDERING controls whether or not the GrStrokePathRenderer can
be selected | 237 * GR_STROKE_PATH_RENDERING controls whether or not the GrStrokePathRenderer can
be selected |
| 229 * as a path renderer. GrStrokePathRenderer is currently an experimental path re
nderer. | 238 * as a path renderer. GrStrokePathRenderer is currently an experimental path re
nderer. |
| 230 */ | 239 */ |
| 231 #if !defined(GR_STROKE_PATH_RENDERING) | 240 #if !defined(GR_STROKE_PATH_RENDERING) |
| 232 #define GR_STROKE_PATH_RENDERING 0 | 241 #define GR_STROKE_PATH_RENDERING 0 |
| 233 #endif | 242 #endif |
| 234 | 243 |
| 235 #endif | 244 #endif |
| OLD | NEW |