• Home
  • Raw
  • Download

Lines Matching refs:scratchKey

317         GrScratchKey scratchKey;  in TestResource()  local
318 ComputeScratchKey(fProperty, &scratchKey); in TestResource()
319 this->setScratchKey(scratchKey); in TestResource()
634 GrScratchKey scratchKey; in test_duplicate_scratch_key() local
635 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_duplicate_scratch_key()
639 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
653 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
659 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
675 GrScratchKey scratchKey; in test_remove_scratch_key() local
677 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
679 …REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize,… in test_remove_scratch_key()
682 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
684 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
689 find = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, 0); in test_remove_scratch_key()
693 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
699 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
703 find = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, 0); in test_remove_scratch_key()
706 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
712 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
717 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
734 GrScratchKey scratchKey; in test_scratch_key_consistency() local
743 scratchKey = scratchKey1; in test_scratch_key_consistency()
744 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize()); in test_scratch_key_consistency()
745 REPORTER_ASSERT(reporter, scratchKey1 == scratchKey); in test_scratch_key_consistency()
746 REPORTER_ASSERT(reporter, scratchKey == scratchKey1); in test_scratch_key_consistency()
747 REPORTER_ASSERT(reporter, scratchKey2 != scratchKey); in test_scratch_key_consistency()
748 REPORTER_ASSERT(reporter, scratchKey != scratchKey2); in test_scratch_key_consistency()
749 scratchKey = scratchKey2; in test_scratch_key_consistency()
750 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize()); in test_scratch_key_consistency()
751 REPORTER_ASSERT(reporter, scratchKey1 != scratchKey); in test_scratch_key_consistency()
752 REPORTER_ASSERT(reporter, scratchKey != scratchKey1); in test_scratch_key_consistency()
753 REPORTER_ASSERT(reporter, scratchKey2 == scratchKey); in test_scratch_key_consistency()
754 REPORTER_ASSERT(reporter, scratchKey == scratchKey2); in test_scratch_key_consistency()
757 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_scratch_key_consistency()
759 …REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize,… in test_scratch_key_consistency()
762 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_scratch_key_consistency()
763 … GrGpuResource* find = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, 0); in test_scratch_key_consistency()
767 scratchKey2 = scratchKey; in test_scratch_key_consistency()
928 GrScratchKey scratchKey; in test_purge_invalidated() local
929 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_purge_invalidated()
930 …GrGpuResource* scratch = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, … in test_purge_invalidated()
936 scratch = cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, 0); in test_purge_invalidated()