diff options
author | rmistry <rmistry@google.com> | 2015-08-27 13:53:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-27 13:53:48 -0700 |
commit | b6bf36785cc5206f03573cf0bdd980db04eda24c (patch) | |
tree | 5d64002587783f7165c9674874ebe7b5fa1b00a1 /src/gpu | |
parent | 38f1f6f9e590fc20b81015ceca9d642cbe02a2d9 (diff) |
Revert of By default purge resources that haven't been used for 64 flushes (patchset #2 id:20001 of https://codereview.chromium.org/1316233003/ )
Reason for revert:
Suspect for the failed "webgl_conformance on Intel GPU on Mac" test on 2 DEPS rolls:
https://codereview.chromium.org/1320943002/
https://codereview.chromium.org/1315703003/
Example build: http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/105501
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
TBR=robertphillips@google.com,bsalomon@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:4258
Review URL: https://codereview.chromium.org/1319053002
Diffstat (limited to 'src/gpu')
-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; |