blob: 594889b1a73a213d3c19f80b164bd9a4e563b2be [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/**
25 * When drawing rects this causes Ganesh to use a vertex buffer containing
26 * a unit square that is positioned by a matrix. Enable on systems where
27 * emitting per-rect-draw verts is more expensive than constant/matrix
28 * updates. Defaults to 0.
29 */
30//#define GR_STATIC_RECT_VB 1
31
32
33/**
bsalomon@google.com1c13c962011-02-14 16:51:21 +000034 * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using
bsalomon@google.com96e96df2011-10-10 14:49:29 +000035 * updateData. (Note the depending on the underlying 3D API the update functions
36 * may always be implemented using a lock)
bsalomon@google.com1c13c962011-02-14 16:51:21 +000037 */
38//#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15)
39
djsollen@google.com42041e62012-10-29 19:24:45 +000040/**
41 * This gives a threshold in megabytes for the maximum size of the texture cache
42 * in vram. The value is only a default and can be overridden at runtime.
43 */
44//#define GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT 96
45
reed@google.comac10a2d2010-12-22 21:39:39 +000046#endif