blob: a10d339381ee7234378c43b0d4cb1d9af43f45aa [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
reed@google.com117cc392011-01-19 13:19:27 +00002/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00003 * Copyright 2010 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
reed@google.com117cc392011-01-19 13:19:27 +00007 */
8
epoger@google.comec3ed6a2011-07-28 14:26:00 +00009
reed@google.comac10a2d2010-12-22 21:39:39 +000010#ifndef GrUserConfig_DEFINED
11#define GrUserConfig_DEFINED
12
13#if defined(GR_USER_CONFIG_FILE)
14 #error "default user config pulled in but GR_USER_CONFIG_FILE is defined."
15#endif
16
17#if 0
18 #undef GR_RELEASE
19 #undef GR_DEBUG
20 #define GR_RELEASE 0
21 #define GR_DEBUG 1
22#endif
23
bsalomon@google.com64386952013-02-08 21:22:44 +000024/**
bsalomon@google.com1c13c962011-02-14 16:51:21 +000025 * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using
bsalomon@google.com96e96df2011-10-10 14:49:29 +000026 * updateData. (Note the depending on the underlying 3D API the update functions
27 * may always be implemented using a lock)
bsalomon@google.com1c13c962011-02-14 16:51:21 +000028 */
29//#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15)
30
djsollen@google.com42041e62012-10-29 19:24:45 +000031/**
32 * This gives a threshold in megabytes for the maximum size of the texture cache
33 * in vram. The value is only a default and can be overridden at runtime.
34 */
35//#define GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT 96
36
reed@google.comac10a2d2010-12-22 21:39:39 +000037#endif