diff options
author | 2015-08-31 03:24:13 -0700 | |
---|---|---|
committer | 2015-08-31 03:24:13 -0700 | |
commit | 8db52b6367956c22e0cb1be8a9b77b154d21bbf9 (patch) | |
tree | bab0060f305b3a85f68a2411daf97f9b12340373 /src/gpu/GrResourceCache.h | |
parent | 71d0c33068d41878cc3117f3761f49300f6b3d54 (diff) |
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
Diffstat (limited to 'src/gpu/GrResourceCache.h')
-rw-r--r-- | src/gpu/GrResourceCache.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h index 67aa4e941a..2171420a43 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; |