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
This commit is contained in:
bsalomon 2015-11-03 07:50:38 -08:00 committed by Commit bot
parent 479f54dd94
commit f7de08a52b

View File

@ -58,9 +58,8 @@ public:
static const size_t kDefaultMaxSize = 96 * (1 << 20); static const size_t kDefaultMaxSize = 96 * (1 << 20);
// Default number of flushes a budgeted resources can go unused in the cache before it is // 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 // 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 // large).
// of the cache by default. static const int kDefaultMaxUnusedFlushes = 64;
static const int kDefaultMaxUnusedFlushes = 1024;
/** Used to access functionality needed by GrGpuResource for lifetime management. */ /** Used to access functionality needed by GrGpuResource for lifetime management. */
class ResourceAccess; class ResourceAccess;