commit | bd783cd5b62118277b75933c3cd7b9097129259a | [log] [tgz] |
---|---|---|
author | bsalomon <bsalomon@google.com> | Mon Aug 31 08:25:03 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Aug 31 08:25:03 2015 -0700 |
tree | 3fdca245606e5070e0594d6f27107d65698e0f73 | |
parent | 9a40a9e6a5895a683be4826d0d7b772311d44963 [diff] |
By default purge resources that haven't been used for 64 flushes BUG=skia:4258 Committed: https://skia.googlesource.com/skia/+/85047175508a24f43eef49359bed215a2a3bb104 R=robertphillips@google.com Committed: https://skia.googlesource.com/skia/+/71d0c33068d41878cc3117f3761f49300f6b3d54 Review URL: https://codereview.chromium.org/1316233003
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h index 2171420..ef378e3 100644 --- a/src/gpu/GrResourceCache.h +++ b/src/gpu/GrResourceCache.h
@@ -57,9 +57,8 @@ 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 = 128; /** Used to access functionality needed by GrGpuResource for lifetime management. */ class ResourceAccess;