aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrResourceCache.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-09-29 07:25:49 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-29 07:25:49 -0700
commit198a350051824229aa89a5d6348f5a7fc875c9ca (patch)
tree20348cd1140f6da80b9d7084929d36d73c04d73f /src/gpu/GrResourceCache.h
parente25eea4b36a488448fb730f4e3dc5a900b0e2892 (diff)
By default purge resources that haven't been used for 64 flushes
Diffstat (limited to 'src/gpu/GrResourceCache.h')
-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 2412174121..3220ba5cd6 100644
--- a/src/gpu/GrResourceCache.h
+++ b/src/gpu/GrResourceCache.h
@@ -58,9 +58,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;