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
|
|
|
/**
|
2014-05-07 20:51:05 +00:00
|
|
|
* This gives a threshold in bytes of when to map a GrGeometryBuffer vs using
|
2011-10-10 14:49:29 +00:00
|
|
|
* updateData. (Note the depending on the underlying 3D API the update functions
|
2014-05-07 20:51:05 +00:00
|
|
|
* may always be implemented using a map)
|
2011-02-14 16:51:21 +00:00
|
|
|
*/
|
2014-05-07 20:51:05 +00:00
|
|
|
//#define GR_GEOM_BUFFER_MAP_THRESHOLD (1<<15)
|
2011-02-14 16:51:21 +00:00
|
|
|
|
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.
|
|
|
|
*/
|
2013-10-30 17:04:16 +00:00
|
|
|
//#define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96
|
|
|
|
|
|
|
|
/**
|
2013-10-31 07:01:53 +00:00
|
|
|
* This specifies the maximum number of textures the texture cache can hold
|
2013-10-30 17:04:16 +00:00
|
|
|
* in vram. The value is only a default and can be overridden at runtime.
|
|
|
|
*/
|
|
|
|
//#define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048
|
2012-10-29 19:24:45 +00:00
|
|
|
|
2010-12-22 21:39:39 +00:00
|
|
|
#endif
|