Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: include/gpu/GrUserConfig.h

Issue 14367030: Remove GR_STATIC_RECT_VB (take 2) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/gpu/GrConfig.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef GrUserConfig_DEFINED 10 #ifndef GrUserConfig_DEFINED
11 #define GrUserConfig_DEFINED 11 #define GrUserConfig_DEFINED
12 12
13 #if defined(GR_USER_CONFIG_FILE) 13 #if defined(GR_USER_CONFIG_FILE)
14 #error "default user config pulled in but GR_USER_CONFIG_FILE is defined." 14 #error "default user config pulled in but GR_USER_CONFIG_FILE is defined."
15 #endif 15 #endif
16 16
17 #if 0 17 #if 0
18 #undef GR_RELEASE 18 #undef GR_RELEASE
19 #undef GR_DEBUG 19 #undef GR_DEBUG
20 #define GR_RELEASE 0 20 #define GR_RELEASE 0
21 #define GR_DEBUG 1 21 #define GR_DEBUG 1
22 #endif 22 #endif
23 23
24 /** 24 /**
25 * When drawing rects this causes Ganesh to use a vertex buffer containing
26 * a unit square that is positioned by a matrix. Enable on systems where
27 * emitting per-rect-draw verts is more expensive than constant/matrix
28 * updates. Defaults to 0.
29 */
30 //#define GR_STATIC_RECT_VB 1
31
32
33 /**
34 * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using 25 * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using
35 * updateData. (Note the depending on the underlying 3D API the update functions 26 * updateData. (Note the depending on the underlying 3D API the update functions
36 * may always be implemented using a lock) 27 * may always be implemented using a lock)
37 */ 28 */
38 //#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15) 29 //#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15)
39 30
40 /** 31 /**
41 * This gives a threshold in megabytes for the maximum size of the texture cache 32 * This gives a threshold in megabytes for the maximum size of the texture cache
42 * in vram. The value is only a default and can be overridden at runtime. 33 * in vram. The value is only a default and can be overridden at runtime.
43 */ 34 */
44 //#define GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT 96 35 //#define GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT 96
45 36
46 #endif 37 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrConfig.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698