diff options
author | bsalomon <bsalomon@google.com> | 2014-11-13 13:19:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-13 13:19:10 -0800 |
commit | 66a450f21a3da174b7eed89a1d5fc8591e8b6ee6 (patch) | |
tree | 97170b6b7e193001f9afbf6a99980dd355de2bda /src/gpu/GrGpuResourceCacheAccess.h | |
parent | bc97c9378bf8b89cc17280a2a04a5c3a9405e6ab (diff) |
Replace GrResourceCache with GrResourceCache2.
BUG=skia:2889
Review URL: https://codereview.chromium.org/716143004
Diffstat (limited to 'src/gpu/GrGpuResourceCacheAccess.h')
-rw-r--r-- | src/gpu/GrGpuResourceCacheAccess.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gpu/GrGpuResourceCacheAccess.h b/src/gpu/GrGpuResourceCacheAccess.h index af5c05464b..7417a55a71 100644 --- a/src/gpu/GrGpuResourceCacheAccess.h +++ b/src/gpu/GrGpuResourceCacheAccess.h @@ -29,25 +29,6 @@ public: } /** - * Used by legacy cache to attach a cache entry. This is to be removed soon. - */ - void setCacheEntry(GrResourceCacheEntry* cacheEntry) { - // GrResourceCache never changes the cacheEntry once one has been added. - SkASSERT(NULL == cacheEntry || NULL == fResource->fCacheEntry); - fResource->fCacheEntry = cacheEntry; - } - - /** - * Is the resource in the legacy cache? This is to be removed soon. - */ - bool isInCache() const { return SkToBool(fResource->fCacheEntry); } - - /** - * Returns the cache entry for the legacy cache. This is to be removed soon. - */ - GrResourceCacheEntry* getCacheEntry() const { return fResource->fCacheEntry; } - - /** * Is the resource currently cached as scratch? This means it has a valid scratch key and does * not have a content key. */ |