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

Review URL: https://codereview.chromium.org/1316233003 .
This commit is contained in:
Brian Salomon 2015-08-30 22:12:11 -04:00
parent 1a7f8f4a81
commit 71d0c33068

View File

@ -57,9 +57,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;