Lines Matching defs:cache

130     GrResourceCache* cache = dContext->priv().getResourceCache();
132 int startCacheCount = cache->getResourceCount();
147 REPORTER_ASSERT(reporter, startCacheCount == cache->getResourceCount());
175 // deleting the proxy should delete it from the hash but not the cache
181 REPORTER_ASSERT(reporter, expectedCacheCount == cache->getResourceCount());
187 REPORTER_ASSERT(reporter, expectedCacheCount == cache->getResourceCount());
189 // Mega-purging it should remove it from both the hash and the cache
191 cache->purgeUnlockedResources();
195 REPORTER_ASSERT(reporter, expectedCacheCount == cache->getResourceCount());
201 REPORTER_ASSERT(reporter, expectedCacheCount == cache->getResourceCount());
207 cache->purgeAsNeeded();
211 REPORTER_ASSERT(reporter, expectedCacheCount == cache->getResourceCount());
224 GrResourceCache* cache = dContext->priv().getResourceCache();
225 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
237 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
240 // Some of our backends use buffers to do uploads that will live in our resource cache. So we
252 REPORTER_ASSERT(reporter, cacheEntriesPerProxy + bufferResources == cache->getResourceCount());
256 // this forces the cache to respond to the inval msg
261 REPORTER_ASSERT(reporter, cacheEntriesPerProxy + bufferResources == cache->getResourceCount());
282 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
291 GrResourceCache* cache = dContext->priv().getResourceCache();
292 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
305 // Send an invalidation message, which will be sitting in the cache's inbox
310 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
319 REPORTER_ASSERT(reporter, cacheEntriesPerProxy == cache->getResourceCount());
325 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
331 GrResourceCache* cache = direct->priv().getResourceCache();
334 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
337 // proxy instansiations may add multiple things to the cache. There would be an entry for the
349 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
354 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
355 cache->purgeUnlockedResources();