Lines Matching refs:scratchKey
775 GrScratchKey scratchKey; in test_duplicate_scratch_key() local
776 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_duplicate_scratch_key()
780 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
794 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
800 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
817 GrScratchKey scratchKey; in test_remove_scratch_key() local
819 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
821 …REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize,… in test_remove_scratch_key()
824 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
826 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
831 …find = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, GrResourceCache::S… in test_remove_scratch_key()
835 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
841 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
845 …find = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, GrResourceCache::S… in test_remove_scratch_key()
848 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
854 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
859 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
877 GrScratchKey scratchKey; in test_scratch_key_consistency() local
886 scratchKey = scratchKey1; in test_scratch_key_consistency()
887 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize()); in test_scratch_key_consistency()
888 REPORTER_ASSERT(reporter, scratchKey1 == scratchKey); in test_scratch_key_consistency()
889 REPORTER_ASSERT(reporter, scratchKey == scratchKey1); in test_scratch_key_consistency()
890 REPORTER_ASSERT(reporter, scratchKey2 != scratchKey); in test_scratch_key_consistency()
891 REPORTER_ASSERT(reporter, scratchKey != scratchKey2); in test_scratch_key_consistency()
892 scratchKey = scratchKey2; in test_scratch_key_consistency()
893 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize()); in test_scratch_key_consistency()
894 REPORTER_ASSERT(reporter, scratchKey1 != scratchKey); in test_scratch_key_consistency()
895 REPORTER_ASSERT(reporter, scratchKey != scratchKey1); in test_scratch_key_consistency()
896 REPORTER_ASSERT(reporter, scratchKey2 == scratchKey); in test_scratch_key_consistency()
897 REPORTER_ASSERT(reporter, scratchKey == scratchKey2); in test_scratch_key_consistency()
900 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_scratch_key_consistency()
902 …REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize,… in test_scratch_key_consistency()
905 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_scratch_key_consistency()
906 …GrGpuResource* find = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, GrR… in test_scratch_key_consistency()
910 scratchKey2 = scratchKey; in test_scratch_key_consistency()
1069 GrScratchKey scratchKey; in test_purge_invalidated() local
1070 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_purge_invalidated()
1071 …GrGpuResource* scratch = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, … in test_purge_invalidated()
1077 …scratch = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, GrResourceCache… in test_purge_invalidated()