Lines Matching refs:scratchKey

251         GrScratchKey scratchKey;  in TestResource()  local
252 ComputeScratchKey(fProperty, &scratchKey); in TestResource()
253 this->setScratchKey(scratchKey); in TestResource()
571 GrScratchKey scratchKey; in test_duplicate_scratch_key() local
572 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_duplicate_scratch_key()
576 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
590 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
596 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_duplicate_scratch_key()
612 GrScratchKey scratchKey; in test_remove_scratch_key() local
614 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
616 REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey) == NULL); in test_remove_scratch_key()
619 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_remove_scratch_key()
621 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
626 find = cache->findAndRefScratchResource(scratchKey); in test_remove_scratch_key()
630 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
636 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
640 find = cache->findAndRefScratchResource(scratchKey); in test_remove_scratch_key()
643 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
649 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
654 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));) in test_remove_scratch_key()
671 GrScratchKey scratchKey; in test_scratch_key_consistency() local
680 scratchKey = scratchKey1; in test_scratch_key_consistency()
681 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize()); in test_scratch_key_consistency()
682 REPORTER_ASSERT(reporter, scratchKey1 == scratchKey); in test_scratch_key_consistency()
683 REPORTER_ASSERT(reporter, scratchKey == scratchKey1); in test_scratch_key_consistency()
684 REPORTER_ASSERT(reporter, scratchKey2 != scratchKey); in test_scratch_key_consistency()
685 REPORTER_ASSERT(reporter, scratchKey != scratchKey2); in test_scratch_key_consistency()
686 scratchKey = scratchKey2; in test_scratch_key_consistency()
687 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize()); in test_scratch_key_consistency()
688 REPORTER_ASSERT(reporter, scratchKey1 != scratchKey); in test_scratch_key_consistency()
689 REPORTER_ASSERT(reporter, scratchKey != scratchKey1); in test_scratch_key_consistency()
690 REPORTER_ASSERT(reporter, scratchKey2 == scratchKey); in test_scratch_key_consistency()
691 REPORTER_ASSERT(reporter, scratchKey == scratchKey2); in test_scratch_key_consistency()
694 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_scratch_key_consistency()
696 REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey) == NULL); in test_scratch_key_consistency()
699 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey); in test_scratch_key_consistency()
700 GrGpuResource* find = cache->findAndRefScratchResource(scratchKey); in test_scratch_key_consistency()
704 scratchKey2 = scratchKey; in test_scratch_key_consistency()
850 GrScratchKey scratchKey; in test_purge_invalidated() local
851 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey); in test_purge_invalidated()
852 GrGpuResource* scratch = cache->findAndRefScratchResource(scratchKey); in test_purge_invalidated()
858 scratch = cache->findAndRefScratchResource(scratchKey); in test_purge_invalidated()