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

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

Issue 275493004: Rename from "(un)lock" to "(un)map" for geometry buffers. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address Rob's comments Created 6 years, 7 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 | « no previous file | include/gpu/GrUserConfig.h » ('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 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 #else 190 #else
191 template <bool> class GR_STATIC_ASSERT_FAILURE; 191 template <bool> class GR_STATIC_ASSERT_FAILURE;
192 template <> class GR_STATIC_ASSERT_FAILURE<true> {}; 192 template <> class GR_STATIC_ASSERT_FAILURE<true> {};
193 #define GR_STATIC_ASSERT(CONDITION) \ 193 #define GR_STATIC_ASSERT(CONDITION) \
194 enum {GR_CONCAT(X,__LINE__) = \ 194 enum {GR_CONCAT(X,__LINE__) = \
195 sizeof(GR_STATIC_ASSERT_FAILURE<CONDITION>)} 195 sizeof(GR_STATIC_ASSERT_FAILURE<CONDITION>)}
196 #endif 196 #endif
197 #endif 197 #endif
198 198
199 /** 199 /**
200 * GR_GEOM_BUFFER_LOCK_THRESHOLD gives a threshold (in bytes) for when Gr should 200 * GR_GEOM_BUFFER_MAP_THRESHOLD gives a threshold (in bytes) for when Gr should
201 * lock a GrGeometryBuffer to update its contents. It will use lock() if the 201 * map a GrGeometryBuffer to update its contents. It will use map() if the
202 * size of the updated region is greater than the threshold. Otherwise it will 202 * size of the updated region is greater than the threshold. Otherwise it will
203 * use updateData(). 203 * use updateData().
204 */ 204 */
205 #if !defined(GR_GEOM_BUFFER_LOCK_THRESHOLD) 205 #if !defined(GR_GEOM_BUFFER_MAP_THRESHOLD)
206 #define GR_GEOM_BUFFER_LOCK_THRESHOLD (1 << 15) 206 #define GR_GEOM_BUFFER_MAP_THRESHOLD (1 << 15)
207 #endif 207 #endif
208 208
209 /** 209 /**
210 * GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT gives a threshold (in megabytes) for the 210 * GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT gives a threshold (in megabytes) for the
211 * maximum size of the texture cache in vram. The value is only a default and 211 * maximum size of the texture cache in vram. The value is only a default and
212 * can be overridden at runtime. 212 * can be overridden at runtime.
213 */ 213 */
214 #if !defined(GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT) 214 #if !defined(GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT)
215 #define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96 215 #define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96
216 #endif 216 #endif
217 217
218 /** 218 /**
219 * GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT specifies the maximum number of 219 * GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT specifies the maximum number of
220 * textures the texture cache can hold in vram. The value is only a default and 220 * textures the texture cache can hold 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_RESOURCE_CACHE_COUNT_LIMIT) 223 #if !defined(GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT)
224 #define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048 224 #define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048
225 #endif 225 #endif
226 226
227 /** 227 /**
228 * GR_STROKE_PATH_RENDERING controls whether or not the GrStrokePathRenderer can be selected 228 * 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. 229 * as a path renderer. GrStrokePathRenderer is currently an experimental path re nderer.
230 */ 230 */
231 #if !defined(GR_STROKE_PATH_RENDERING) 231 #if !defined(GR_STROKE_PATH_RENDERING)
232 #define GR_STROKE_PATH_RENDERING 0 232 #define GR_STROKE_PATH_RENDERING 0
233 #endif 233 #endif
234 234
235 #endif 235 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698