blob: 092ff9d8bcc480fd96b99fb6ac4f49a1698dc34b [file] [log] [blame]
reed@google.com117cc392011-01-19 13:19:27 +00001/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00002 * Copyright 2010 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
reed@google.com117cc392011-01-19 13:19:27 +00006 */
7
reed@google.comac10a2d2010-12-22 21:39:39 +00008#ifndef GrUserConfig_DEFINED
9#define GrUserConfig_DEFINED
10
11#if defined(GR_USER_CONFIG_FILE)
12 #error "default user config pulled in but GR_USER_CONFIG_FILE is defined."
13#endif
14
bsalomon@google.com64386952013-02-08 21:22:44 +000015/**
commit-bot@chromium.org8341eb72014-05-07 20:51:05 +000016 * This gives a threshold in bytes of when to map a GrGeometryBuffer vs using
bsalomon@google.com96e96df2011-10-10 14:49:29 +000017 * updateData. (Note the depending on the underlying 3D API the update functions
commit-bot@chromium.org8341eb72014-05-07 20:51:05 +000018 * may always be implemented using a map)
bsalomon@google.com1c13c962011-02-14 16:51:21 +000019 */
commit-bot@chromium.org8341eb72014-05-07 20:51:05 +000020//#define GR_GEOM_BUFFER_MAP_THRESHOLD (1<<15)
bsalomon@google.com1c13c962011-02-14 16:51:21 +000021
djsollen@google.com42041e62012-10-29 19:24:45 +000022/**
23 * This gives a threshold in megabytes for the maximum size of the texture cache
24 * in vram. The value is only a default and can be overridden at runtime.
25 */
robertphillips@google.com4e5559a2013-10-30 17:04:16 +000026//#define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96
27
28/**
skia.committer@gmail.com7ed98df2013-10-31 07:01:53 +000029 * This specifies the maximum number of textures the texture cache can hold
robertphillips@google.com4e5559a2013-10-30 17:04:16 +000030 * in vram. The value is only a default and can be overridden at runtime.
31 */
32//#define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048
djsollen@google.com42041e62012-10-29 19:24:45 +000033
reed@google.comac10a2d2010-12-22 21:39:39 +000034#endif