|
1 /* |
|
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. |
|
6 */ |
|
7 |
|
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 |
|
15 /** |
|
16 * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using |
|
17 * updateData. (Note the depending on the underlying 3D API the update functions |
|
18 * may always be implemented using a lock) |
|
19 */ |
|
20 //#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15) |
|
21 |
|
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 */ |
|
26 //#define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96 |
|
27 |
|
28 /** |
|
29 * This specifies the maximum number of textures the texture cache can hold |
|
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 |
|
33 |
|
34 /* |
|
35 * This allows us to set a callback to be called before each GL call to ensure |
|
36 * that our context is set correctly |
|
37 */ |
|
38 #define GR_GL_PER_GL_FUNC_CALLBACK 1 |
|
39 |
|
40 #endif |