michael@0: /* michael@0: * Copyright 2010 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #ifndef GrUserConfig_DEFINED michael@0: #define GrUserConfig_DEFINED michael@0: michael@0: #if defined(GR_USER_CONFIG_FILE) michael@0: #error "default user config pulled in but GR_USER_CONFIG_FILE is defined." michael@0: #endif michael@0: michael@0: /** michael@0: * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using michael@0: * updateData. (Note the depending on the underlying 3D API the update functions michael@0: * may always be implemented using a lock) michael@0: */ michael@0: //#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15) michael@0: michael@0: /** michael@0: * This gives a threshold in megabytes for the maximum size of the texture cache michael@0: * in vram. The value is only a default and can be overridden at runtime. michael@0: */ michael@0: //#define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96 michael@0: michael@0: /** michael@0: * This specifies the maximum number of textures the texture cache can hold michael@0: * in vram. The value is only a default and can be overridden at runtime. michael@0: */ michael@0: //#define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048 michael@0: michael@0: /* michael@0: * This allows us to set a callback to be called before each GL call to ensure michael@0: * that our context is set correctly michael@0: */ michael@0: #define GR_GL_PER_GL_FUNC_CALLBACK 1 michael@0: michael@0: #endif