2011-07-28 14:26:00 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2010 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
2010-12-22 21:39:39 +00:00
|
|
|
*/
|
|
|
|
|
2011-01-19 13:19:27 +00:00
|
|
|
#ifndef GrUserConfig_DEFINED
|
|
|
|
#define GrUserConfig_DEFINED
|
|
|
|
|
|
|
|
#if defined(GR_USER_CONFIG_FILE)
|
|
|
|
#error "default user config pulled in but GR_USER_CONFIG_FILE is defined."
|
|
|
|
#endif
|
|
|
|
|
2013-02-08 21:22:44 +00:00
|
|
|
/**
|
2011-02-14 16:51:21 +00:00
|
|
|
* This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using
|
2011-10-10 14:49:29 +00:00
|
|
|
* updateData. (Note the depending on the underlying 3D API the update functions
|
|
|
|
* may always be implemented using a lock)
|
2011-02-14 16:51:21 +00:00
|
|
|
*/
|
|
|
|
//#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15)
|
|
|
|
|
2012-10-29 19:24:45 +00:00
|
|
|
/**
|
|
|
|
* This gives a threshold in megabytes for the maximum size of the texture cache
|
|
|
|
* in vram. The value is only a default and can be overridden at runtime.
|
|
|
|
*/
|
|
|
|
//#define GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT 96
|
|
|
|
|
2010-12-22 21:39:39 +00:00
|
|
|
#endif
|