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 /** | |
234 * GR_STROKE_PATH_RENDERING controls whether or not the GrStrokePathRenderer can
be selected | 216 * GR_STROKE_PATH_RENDERING controls whether or not the GrStrokePathRenderer can
be selected |
235 * as a path renderer. GrStrokePathRenderer is currently an experimental path re
nderer. | 217 * as a path renderer. GrStrokePathRenderer is currently an experimental path re
nderer. |
236 */ | 218 */ |
237 #if !defined(GR_STROKE_PATH_RENDERING) | 219 #if !defined(GR_STROKE_PATH_RENDERING) |
238 #define GR_STROKE_PATH_RENDERING 0 | 220 #define GR_STROKE_PATH_RENDERING 0 |
239 #endif | 221 #endif |
240 | 222 |
241 /** | 223 /** |
242 * GR_ALWAYS_ALLOCATE_ON_HEAP determines whether various temporary buffers creat
ed | 224 * GR_ALWAYS_ALLOCATE_ON_HEAP determines whether various temporary buffers creat
ed |
243 * in the GPU backend are always allocated on the heap or are allowed to be | 225 * in the GPU backend are always allocated on the heap or are allowed to be |
244 * allocated on the stack for smaller memory requests. | 226 * allocated on the stack for smaller memory requests. |
245 * | 227 * |
246 * This is only used for memory buffers that are created and then passed through
to the | 228 * This is only used for memory buffers that are created and then passed through
to the |
247 * 3D API (e.g. as texture or geometry data) | 229 * 3D API (e.g. as texture or geometry data) |
248 */ | 230 */ |
249 #if !defined(GR_ALWAYS_ALLOCATE_ON_HEAP) | 231 #if !defined(GR_ALWAYS_ALLOCATE_ON_HEAP) |
250 #define GR_ALWAYS_ALLOCATE_ON_HEAP 0 | 232 #define GR_ALWAYS_ALLOCATE_ON_HEAP 0 |
251 #endif | 233 #endif |
252 | 234 |
253 #endif | 235 #endif |
OLD | NEW |