Lines Matching refs:localCache
161 #define CHECK_LOCAL(localCache, localName, globalName, ...) \ argument
162 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__))
165 SkResourceCache* localCache) { in FindWH() argument
170 return CHECK_LOCAL(localCache, find, Find, BitmapKey(desc), BitmapRec::Finder, result); in FindWH()
174 SkResourceCache* localCache) { in AddWH() argument
181 CHECK_LOCAL(localCache, add, Add, rec); in AddWH()
186 SkResourceCache* localCache) { in Find() argument
189 return CHECK_LOCAL(localCache, find, Find, key, BitmapRec::Finder, result); in Find()
193 SkResourceCache* localCache) { in Add() argument
205 CHECK_LOCAL(localCache, add, Add, rec); in Add()
211 bool SkBitmapCache::Find(uint32_t genID, SkBitmap* result, SkResourceCache* localCache) { in Find() argument
214 return CHECK_LOCAL(localCache, find, Find, key, BitmapRec::Finder, result); in Find()
217 void SkBitmapCache::Add(uint32_t genID, const SkBitmap& result, SkResourceCache* localCache) { in Add() argument
222 CHECK_LOCAL(localCache, add, Add, rec); in Add()
282 SkResourceCache* localCache) { in FindAndRef() argument
287 if (!CHECK_LOCAL(localCache, find, Find, key, MipMapRec::Finder, &result)) { in FindAndRef()
293 static SkResourceCache::DiscardableFactory get_fact(SkResourceCache* localCache) { in get_fact() argument
294 return localCache ? localCache->GetDiscardableFactory() in get_fact()
298 const SkMipMap* SkMipMapCache::AddAndRef(const SkBitmap& src, SkResourceCache* localCache) { in AddAndRef() argument
299 SkMipMap* mipmap = SkMipMap::Build(src, get_fact(localCache)); in AddAndRef()
302 CHECK_LOCAL(localCache, add, Add, rec); in AddAndRef()