Add GrContext API to report the number of purgeable bytes in the cache.
authorDerek Sollenberger <djsollen@google.com>
Wed, 24 May 2017 15:41:33 +0000 (11:41 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 24 May 2017 17:08:45 +0000 (17:08 +0000)
commitee47914ae5661043c20754f46523665a6d31bc73
tree09ec5b6618dbf939942f7ae37bd38bc616650926
parent8785df15fe5a57651597d138d3c5aea0ffe3f661
Add GrContext API to report the number of purgeable bytes in the cache.

Change-Id: I1457eec9831736f386e3b3b80d9eac8dbb337a9b
Reviewed-on: https://skia-review.googlesource.com/17829
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
include/gpu/GrContext.h
src/gpu/GrContext.cpp
src/gpu/GrResourceCache.cpp
src/gpu/GrResourceCache.h
tests/ResourceCacheTest.cpp