• Home
  • Raw
  • Download

Lines Matching refs:proxyCache

34     ProxyCache* proxyCache = recorder->priv().proxyCache();  in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()  local
43 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
45 sk_sp<TextureProxy> proxy = proxyCache->findOrCreateCachedProxy(recorder.get(), bitmap, in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
48 REPORTER_ASSERT(r, proxyCache->numCached() == 1); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
52 proxyCache->forceProcessInvalidKeyMsgs(); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
54 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
61 ProxyCache* proxyCache1 = recorder1->priv().proxyCache(); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
63 ProxyCache* proxyCache2 = recorder2->priv().proxyCache(); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
112 ProxyCache* proxyCache = recorder->priv().proxyCache(); in setup_test() local
122 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in setup_test()
124 setup.fProxy1 = proxyCache->findOrCreateCachedProxy(recorder, setup.fBitmap1, in setup_test()
126 REPORTER_ASSERT(r, proxyCache->numCached() == 1); in setup_test()
139 setup.fProxy2 = proxyCache->findOrCreateCachedProxy(recorder, setup.fBitmap2, in setup_test()
141 REPORTER_ASSERT(r, proxyCache->numCached() == 2); in setup_test()
167 ProxyCache* proxyCache = recorder->priv().proxyCache(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local
175 proxyCache->forceFreeUniquelyHeld(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
176 REPORTER_ASSERT(r, proxyCache->numCached() == 2); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
179 proxyCache->forceFreeUniquelyHeld(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
180 REPORTER_ASSERT(r, proxyCache->numCached() == 1); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
183 proxyCache->forceFreeUniquelyHeld(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
184 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
195 ProxyCache* proxyCache = recorder->priv().proxyCache(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local
203 proxyCache->forcePurgeProxiesNotUsedSince(setup.fTimeBetweenProxyCreation); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
204 REPORTER_ASSERT(r, proxyCache->numCached() == 1); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
206 sk_sp<TextureProxy> test = proxyCache->find(setup.fBitmap1); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
209 proxyCache->forcePurgeProxiesNotUsedSince(setup.fTimeAfterAllProxyCreation); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
210 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
222 ProxyCache* proxyCache = recorder->priv().proxyCache(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local
231 sk_sp<TextureProxy> test = proxyCache->findOrCreateCachedProxy(recorder.get(), setup.fBitmap1, in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
238 proxyCache->forcePurgeProxiesNotUsedSince(setup.fTimeBetweenProxyCreation); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
239 REPORTER_ASSERT(r, proxyCache->numCached() == 2); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
241 proxyCache->forcePurgeProxiesNotUsedSince(setup.fTimeAfterAllProxyCreation); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
242 REPORTER_ASSERT(r, proxyCache->numCached() == 1); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
244 test = proxyCache->find(setup.fBitmap2); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
247 proxyCache->forcePurgeProxiesNotUsedSince(timeAfterProxy1Update); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
248 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
259 ProxyCache* proxyCache = recorder->priv().proxyCache(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local
267 proxyCache->forcePurgeProxiesNotUsedSince(setup.fTimeAfterAllProxyCreation); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
268 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
280 ProxyCache* proxyCache = recorder->priv().proxyCache(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local
292 REPORTER_ASSERT(r, proxyCache->numCached() == 2); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
295 proxyCache->forceProcessInvalidKeyMsgs(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
298 sk_sp<TextureProxy> test = proxyCache->find(setup.fBitmap1); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
304 REPORTER_ASSERT(r, proxyCache->numCached() == 1); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
305 test = proxyCache->find(setup.fBitmap1); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
309 proxyCache->forceProcessInvalidKeyMsgs(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
312 test = proxyCache->find(setup.fBitmap2); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
318 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
331 ProxyCache* proxyCache = recorder->priv().proxyCache(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local
350 REPORTER_ASSERT(r, proxyCache->numCached() == 2); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
367 REPORTER_ASSERT(r, proxyCache->numCached() == 2); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
378 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
387 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
408 return recorder->priv().proxyCache()->findOrCreateCachedProxy( in find_or_create_by_key()
434 ProxyCache* proxyCache = recorder->priv().proxyCache(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local
436 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
447 REPORTER_ASSERT(r, proxyCache->numCached() == 2); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
450 proxyCache->forceFreeUniquelyHeld(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
451 REPORTER_ASSERT(r, proxyCache->numCached() == 2); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
464 proxyCache->forceFreeUniquelyHeld(); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
465 REPORTER_ASSERT(r, proxyCache->numCached() == 0); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()