By default purge resources that haven't been used for 64 flushes
authorbsalomon <bsalomon@google.com>
Thu, 27 Aug 2015 15:47:47 +0000 (08:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 27 Aug 2015 15:47:47 +0000 (08:47 -0700)
BUG=skia:4258

Review URL: https://codereview.chromium.org/1316233003

src/gpu/GrResourceCache.h

index 2171420..67aa4e9 100644 (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;