Lines Matching defs:scratchKey

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