aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-08-27 08:47:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-27 08:47:47 -0700
commit85047175508a24f43eef49359bed215a2a3bb104 (patch)
tree1a407b416f50e3ad8764ab7f49f2576236e226b4
parentaaf951d537da8769d22c43c321f169ceebc1a24b (diff)
By default purge resources that haven't been used for 64 flushes
-rw-r--r--src/gpu/GrResourceCache.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h
index 2171420a43..67aa4e941a 100644
--- a/src/gpu/GrResourceCache.h
+++ b/src/gpu/GrResourceCache.h
@@ -57,9 +57,8 @@ public:
static const size_t kDefaultMaxSize = 96 * (1 << 20);
// Default number of flushes a budgeted resources can go unused in the cache before it is
// purged. Large values disable the feature (as the ring buffer of flush timestamps would be
- // large). This is currently the default until we decide to enable this feature
- // of the cache by default.
- static const int kDefaultMaxUnusedFlushes = 1024;
+ // large).
+ static const int kDefaultMaxUnusedFlushes = 64;
/** Used to access functionality needed by GrGpuResource for lifetime management. */
class ResourceAccess;