Add mechanism to proactively purge old resources in GrResourceCache.
authorbsalomon <bsalomon@google.com>
Wed, 8 Apr 2015 18:01:54 +0000 (11:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Apr 2015 18:01:55 +0000 (11:01 -0700)
commit3f324321cdd8fde7976d958e2888a1ec4e657e35
tree227b51fcdfe9a7311115e92acfb64950ef180b71
parentb7133bed55af8dd4ca9427892bb1a5623dbaccf0
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
include/gpu/GrGpuResource.h
src/gpu/GrContext.cpp
src/gpu/GrGpuResource.cpp
src/gpu/GrResourceCache.cpp
src/gpu/GrResourceCache.h
tests/ResourceCacheTest.cpp