Lines Matching refs:threadSafeCache
143 int numCacheEntries() const { return this->threadSafeCache()->numEntries(); } in numCacheEntries()
169 GrThreadSafeCache* threadSafeCache() { return fDContext->priv().threadSafeCache(); } in threadSafeCache() function in TestHelper
170 const GrThreadSafeCache* threadSafeCache() const { return fDContext->priv().threadSafeCache(); } in threadSafeCache() function in TestHelper
186 auto view = AccessCachedView(rContext, this->threadSafeCache(), in addViewAccess()
221 auto threadSafeCache = this->threadSafeCache(); in checkView() local
223 auto [view, xtraData] = threadSafeCache->findWithData(key); in checkView()
307 auto threadSafeCache = this->threadSafeCache(); in checkVert() local
309 auto [vertData, xtraData] = threadSafeCache->findVertsWithData(key); in checkVert()
495 auto threadSafeViewCache = rContext->priv().threadSafeCache(); in findOrCreateVertices()
672 GrThreadSafeCache* threadSafeCache, in AccessCachedView() argument
686 auto [view, data] = threadSafeCache->findOrAddWithData(key, lazyView); in AccessCachedView()
708 threadSafeCache->remove(key); in AccessCachedView()
717 if (view = threadSafeCache->find(key); !failLookup && view) { in AccessCachedView()
727 auto [newView, data] = threadSafeCache->addWithData(key, view); in AccessCachedView()
962 auto threadSafeCache = helper.threadSafeCache(); in test_5() local
967 size_t initialSize = threadSafeCache->approxBytesUsedForHash(); in test_5()
969 while (initialSize == threadSafeCache->approxBytesUsedForHash()) { in test_5()
978 /*misses*/ threadSafeCache->numEntries(), in test_5()
1055 helper.threadSafeCache()->dropUniqueRefs(nullptr); in test_7()
1060 helper.threadSafeCache()->dropUniqueRefs(nullptr); in test_7()
1065 helper.threadSafeCache()->dropAllRefs(); in test_7()
1495 auto [vertexData, xtraData] = helper.threadSafeCache()->findVertsWithData(key); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1508 auto [vertexData, xtraData] = helper.threadSafeCache()->findVertsWithData(key); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()