Lines Matching refs:discardableManager
183 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST() local
184 SkStrikeServer server(discardableManager.get()); in DEF_TEST()
185 SkStrikeClient client(discardableManager, false); in DEF_TEST()
196 discardableManager->unlockAndDeleteAll(); in DEF_TEST()
200 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
201 SkStrikeServer server(discardableManager.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
202 SkStrikeClient client(discardableManager, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
240 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
243 discardableManager->unlockAndDeleteAll(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
247 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
248 SkStrikeServer server(discardableManager.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
249 SkStrikeClient client(discardableManager, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
272 discardableManager->unlockAndDeleteAll(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
276 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST() local
277 SkStrikeServer server(discardableManager.get()); in DEF_TEST()
278 SkStrikeClient client(discardableManager, false); in DEF_TEST()
291 REPORTER_ASSERT(reporter, discardableManager->handleCount() == 1u); in DEF_TEST()
292 REPORTER_ASSERT(reporter, discardableManager->lockedHandles().count() == 1u); in DEF_TEST()
298 discardableManager->unlockAll(); in DEF_TEST()
299 REPORTER_ASSERT(reporter, discardableManager->lockedHandles().count() == 0u); in DEF_TEST()
302 REPORTER_ASSERT(reporter, discardableManager->handleCount() == 1u); in DEF_TEST()
303 REPORTER_ASSERT(reporter, discardableManager->lockedHandles().count() == 1u); in DEF_TEST()
306 discardableManager->unlockAndDeleteAll(); in DEF_TEST()
310 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST() local
311 SkStrikeServer server(discardableManager.get()); in DEF_TEST()
312 SkStrikeClient client(discardableManager, false); in DEF_TEST()
323 REPORTER_ASSERT(reporter, discardableManager->handleCount() == 1u); in DEF_TEST()
334 REPORTER_ASSERT(reporter, discardableManager->handleCount() == 1u); in DEF_TEST()
336 discardableManager->unlockAndDeleteAll(); in DEF_TEST()
338 REPORTER_ASSERT(reporter, discardableManager->handleCount() == 2u); in DEF_TEST()
341 discardableManager->unlockAndDeleteAll(); in DEF_TEST()
345 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST() local
346 SkStrikeServer server(discardableManager.get()); in DEF_TEST()
347 SkStrikeClient client(discardableManager, false); in DEF_TEST()
375 discardableManager->unlockAndDeleteAll(); in DEF_TEST()
380 discardableManager->unlockAndDeleteAll(); in DEF_TEST()
384 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST() local
385 SkStrikeServer server(discardableManager.get()); in DEF_TEST()
386 SkStrikeClient client(discardableManager, false); in DEF_TEST()
408 discardableManager->unlockAndDeleteAll(); in DEF_TEST()
412 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_TEST() local
413 SkStrikeServer server(discardableManager.get()); in DEF_TEST()
415 SkStrikeClient client(discardableManager, false); in DEF_TEST()
434 discardableManager->unlockAndDeleteAll(); in DEF_TEST()
452 discardableManager->unlockAndDeleteAll(); in DEF_TEST()
456 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
457 SkStrikeServer server(discardableManager.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
458 SkStrikeClient client(discardableManager, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
488 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
491 discardableManager->unlockAndDeleteAll(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
531 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
532 SkStrikeServer server(discardableManager.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
533 SkStrikeClient client(discardableManager, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
564 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
567 discardableManager->unlockAndDeleteAll(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
575 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>();
576 SkStrikeServer server(discardableManager.get());
577 SkStrikeClient client(discardableManager, false);
638 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss());
641 discardableManager->unlockAndDeleteAll();
646 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
647 SkStrikeServer server(discardableManager.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
648 SkStrikeClient client(discardableManager, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
675 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
678 discardableManager->unlockAndDeleteAll(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
682 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
683 SkStrikeServer server(discardableManager.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
684 SkStrikeClient client(discardableManager, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
720 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
723 discardableManager->unlockAndDeleteAll(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
727 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
728 SkStrikeServer server(discardableManager.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
729 SkStrikeClient client(discardableManager, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
743 discardableManager->cacheMissCount(SkStrikeClient::kFontMetrics) == 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
745 discardableManager->cacheMissCount(SkStrikeClient::kGlyphMetrics) == 10); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
749 REPORTER_ASSERT(reporter, discardableManager->cacheMissCount(SkStrikeClient::kGlyphImage) == 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
750 REPORTER_ASSERT(reporter, discardableManager->cacheMissCount(SkStrikeClient::kGlyphPath) == 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
753 discardableManager->unlockAndDeleteAll(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
782 sk_sp<DiscardableManager> discardableManager = sk_make_sp<DiscardableManager>(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
783 SkStrikeServer server(discardableManager.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
784 SkStrikeClient client(discardableManager, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
809 REPORTER_ASSERT(reporter, !discardableManager->hasCacheMiss()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
810 discardableManager->resetCacheMissCounts(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
814 discardableManager->unlockAndDeleteAll(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()