diff options
author | reed <reed@google.com> | 2015-08-19 12:25:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-19 12:25:41 -0700 |
commit | 216b643fc77e754a3fabbb0ed397e7cf55d1954d (patch) | |
tree | 32e75226963e5cbeab12a9e4acfd380a7ff7096d /bench | |
parent | fea7763140ba74b78f2c30028452e250140b6f21 (diff) |
private iterator to visit all resource cache entries
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1271033002
Diffstat (limited to 'bench')
-rw-r--r-- | bench/ImageCacheBench.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bench/ImageCacheBench.cpp b/bench/ImageCacheBench.cpp index 4a068b03ab..96c64f84c1 100644 --- a/bench/ImageCacheBench.cpp +++ b/bench/ImageCacheBench.cpp @@ -26,6 +26,8 @@ struct TestRec : public SkResourceCache::Rec { const Key& getKey() const override { return fKey; } size_t bytesUsed() const override { return sizeof(fKey) + sizeof(fValue); } + const char* getCategory() const override { return "imagecachebench-test"; } + SkDiscardableMemory* diagnostic_only_getDiscardable() const override { return NULL; } static bool Visitor(const SkResourceCache::Rec&, void*) { return true; |