From: bsalomon Date: Thu, 27 Aug 2015 15:47:47 +0000 (-0700) Subject: By default purge resources that haven't been used for 64 flushes X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~1079 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85047175508a24f43eef49359bed215a2a3bb104;p=platform%2Fupstream%2FlibSkiaSharp.git By default purge resources that haven't been used for 64 flushes BUG=skia:4258 Review URL: https://codereview.chromium.org/1316233003 --- diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h index 2171420..67aa4e9 100644 --- a/src/gpu/GrResourceCache.h +++ b/src/gpu/GrResourceCache.h @@ -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;