aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-11-03 07:50:38 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-03 07:50:39 -0800
commitf7de08a52b5287cb16b2e89a8e3691676a4dbe5f (patch)
tree1bbe36344e6c5322c5b8b195672a9e34fab3b7da /src
parent479f54dd94a8f468fbd51763943528ec6cf3146f (diff)
Reland "By default purge resources that haven't been used for 64 flushes (patchset #5 id:80001 of https://codereview.chromium.org/1316233003/ )"
TBR=robertphillips@google.com Review URL: https://codereview.chromium.org/1428053003
Diffstat (limited to 'src')
-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;