| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 * GR_GEOM_BUFFER_MAP_THRESHOLD gives a threshold (in bytes) for when Gr should | 206 * GR_GEOM_BUFFER_MAP_THRESHOLD gives a threshold (in bytes) for when Gr should |
| 207 * map a GrGeometryBuffer to update its contents. It will use map() if the | 207 * map a GrGeometryBuffer to update its contents. It will use map() if the |
| 208 * size of the updated region is greater than the threshold. Otherwise it will | 208 * size of the updated region is greater than the threshold. Otherwise it will |
| 209 * use updateData(). | 209 * use updateData(). |
| 210 */ | 210 */ |
| 211 #if !defined(GR_GEOM_BUFFER_MAP_THRESHOLD) | 211 #if !defined(GR_GEOM_BUFFER_MAP_THRESHOLD) |
| 212 #define GR_GEOM_BUFFER_MAP_THRESHOLD (1 << 15) | 212 #define GR_GEOM_BUFFER_MAP_THRESHOLD (1 << 15) |
| 213 #endif | 213 #endif |
| 214 | 214 |
| 215 /** | 215 /** |
| 216 * GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT gives a threshold (in megabytes) for the |
| 217 * maximum size of the texture cache in vram. The value is only a default and |
| 218 * can be overridden at runtime. |
| 219 */ |
| 220 #if !defined(GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT) |
| 221 #define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96 |
| 222 #endif |
| 223 |
| 224 /** |
| 225 * GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT specifies the maximum number of |
| 226 * textures the texture cache can hold in vram. The value is only a default and |
| 227 * can be overridden at runtime. |
| 228 */ |
| 229 #if !defined(GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT) |
| 230 #define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048 |
| 231 #endif |
| 232 |
| 233 /** |
| 216 * GR_STROKE_PATH_RENDERING controls whether or not the GrStrokePathRenderer can
be selected | 234 * GR_STROKE_PATH_RENDERING controls whether or not the GrStrokePathRenderer can
be selected |
| 217 * as a path renderer. GrStrokePathRenderer is currently an experimental path re
nderer. | 235 * as a path renderer. GrStrokePathRenderer is currently an experimental path re
nderer. |
| 218 */ | 236 */ |
| 219 #if !defined(GR_STROKE_PATH_RENDERING) | 237 #if !defined(GR_STROKE_PATH_RENDERING) |
| 220 #define GR_STROKE_PATH_RENDERING 0 | 238 #define GR_STROKE_PATH_RENDERING 0 |
| 221 #endif | 239 #endif |
| 222 | 240 |
| 223 /** | 241 /** |
| 224 * GR_ALWAYS_ALLOCATE_ON_HEAP determines whether various temporary buffers creat
ed | 242 * GR_ALWAYS_ALLOCATE_ON_HEAP determines whether various temporary buffers creat
ed |
| 225 * in the GPU backend are always allocated on the heap or are allowed to be | 243 * in the GPU backend are always allocated on the heap or are allowed to be |
| 226 * allocated on the stack for smaller memory requests. | 244 * allocated on the stack for smaller memory requests. |
| 227 * | 245 * |
| 228 * This is only used for memory buffers that are created and then passed through
to the | 246 * This is only used for memory buffers that are created and then passed through
to the |
| 229 * 3D API (e.g. as texture or geometry data) | 247 * 3D API (e.g. as texture or geometry data) |
| 230 */ | 248 */ |
| 231 #if !defined(GR_ALWAYS_ALLOCATE_ON_HEAP) | 249 #if !defined(GR_ALWAYS_ALLOCATE_ON_HEAP) |
| 232 #define GR_ALWAYS_ALLOCATE_ON_HEAP 0 | 250 #define GR_ALWAYS_ALLOCATE_ON_HEAP 0 |
| 233 #endif | 251 #endif |
| 234 | 252 |
| 235 #endif | 253 #endif |
| OLD | NEW |