• Home
  • Raw
  • Download

Lines Matching refs:scratchKey

881     skgpu::ScratchKey scratchKey;  in test_duplicate_scratch_key()  local
882 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_duplicate_scratch_key()
887 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
902 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
908 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
924 skgpu::ScratchKey scratchKey; in test_remove_scratch_key() local
926 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
928 REPORTER_ASSERT(reporter, !cache->findAndRefScratchResource(scratchKey)); in test_remove_scratch_key()
931 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
933 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
937 GrGpuResource* find = cache->findAndRefScratchResource(scratchKey); in test_remove_scratch_key()
941 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
947 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
951 find = cache->findAndRefScratchResource(scratchKey); in test_remove_scratch_key()
954 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
960 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
965 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
982 skgpu::ScratchKey scratchKey; in test_scratch_key_consistency() local
991 scratchKey = scratchKey1; in test_scratch_key_consistency()
992 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize()); in test_scratch_key_consistency()
993 REPORTER_ASSERT(reporter, scratchKey1 == scratchKey); in test_scratch_key_consistency()
994 REPORTER_ASSERT(reporter, scratchKey == scratchKey1); in test_scratch_key_consistency()
995 REPORTER_ASSERT(reporter, scratchKey2 != scratchKey); in test_scratch_key_consistency()
996 REPORTER_ASSERT(reporter, scratchKey != scratchKey2); in test_scratch_key_consistency()
997 scratchKey = scratchKey2; in test_scratch_key_consistency()
998 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize()); in test_scratch_key_consistency()
999 REPORTER_ASSERT(reporter, scratchKey1 != scratchKey); in test_scratch_key_consistency()
1000 REPORTER_ASSERT(reporter, scratchKey != scratchKey1); in test_scratch_key_consistency()
1001 REPORTER_ASSERT(reporter, scratchKey2 == scratchKey); in test_scratch_key_consistency()
1002 REPORTER_ASSERT(reporter, scratchKey == scratchKey2); in test_scratch_key_consistency()
1005 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_scratch_key_consistency()
1007 REPORTER_ASSERT(reporter, !cache->findAndRefScratchResource(scratchKey)); in test_scratch_key_consistency()
1010 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_scratch_key_consistency()
1011 GrGpuResource* find = cache->findAndRefScratchResource(scratchKey); in test_scratch_key_consistency()
1015 scratchKey2 = scratchKey; in test_scratch_key_consistency()
1173 skgpu::ScratchKey scratchKey; in test_purge_invalidated() local
1174 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_purge_invalidated()
1175 GrGpuResource* scratch = cache->findAndRefScratchResource(scratchKey); in test_purge_invalidated()
1181 scratch = cache->findAndRefScratchResource(scratchKey); in test_purge_invalidated()