From 8db52b6367956c22e0cb1be8a9b77b154d21bbf9 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Mon, 31 Aug 2015 03:24:13 -0700 Subject: [PATCH] Revert of By default purge resources that haven't been used for 64 flushes (patchset #3 id:40001 of https://codereview.chromium.org/1316233003/ ) Reason for revert: Blocking roll Original issue's description: > 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 TBR=robertphillips@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia:4258 Review URL: https://codereview.chromium.org/1316263003 --- src/gpu/GrResourceCache.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h index 67aa4e9..2171420 100644 --- a/src/gpu/GrResourceCache.h +++ b/src/gpu/GrResourceCache.h @@ -57,8 +57,9 @@ 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). - static const int kDefaultMaxUnusedFlushes = 64; + // large). This is currently the default until we decide to enable this feature + // of the cache by default. + static const int kDefaultMaxUnusedFlushes = 1024; /** Used to access functionality needed by GrGpuResource for lifetime management. */ class ResourceAccess; -- 2.7.4