commit | 3f324321cdd8fde7976d958e2888a1ec4e657e35 | [log] [tgz] |
---|---|---|
author | bsalomon <bsalomon@google.com> | Wed Apr 08 11:01:54 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Apr 08 11:01:55 2015 -0700 |
tree | 227b51fcdfe9a7311115e92acfb64950ef180b71 | |
parent | b7133bed55af8dd4ca9427892bb1a5623dbaccf0 [diff] [blame] |
Add mechanism to proactively purge old resources in GrResourceCache. This change leaves the feature turned off by default. Review URL: https://codereview.chromium.org/1032873002
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 89429f1..48e50b7 100755 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp
@@ -1477,6 +1477,7 @@ } else { fDrawBuffer->flush(); } + fResourceCache->notifyFlushOccurred(); fFlushToReduceCacheSize = false; }