Lines Matching refs:scratchKey
815 GrScratchKey scratchKey;
816 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey);
821 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));)
836 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));)
842 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));)
858 GrScratchKey scratchKey;
860 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey);
862 REPORTER_ASSERT(reporter, !cache->findAndRefScratchResource(scratchKey));
865 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey);
867 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));)
871 GrGpuResource* find = cache->findAndRefScratchResource(scratchKey);
875 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));)
881 SkDEBUGCODE(REPORTER_ASSERT(reporter, 1 == cache->countScratchEntriesForKey(scratchKey));)
885 find = cache->findAndRefScratchResource(scratchKey);
888 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));)
894 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));)
899 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));)
916 GrScratchKey scratchKey;
925 scratchKey = scratchKey1;
926 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize());
927 REPORTER_ASSERT(reporter, scratchKey1 == scratchKey);
928 REPORTER_ASSERT(reporter, scratchKey == scratchKey1);
929 REPORTER_ASSERT(reporter, scratchKey2 != scratchKey);
930 REPORTER_ASSERT(reporter, scratchKey != scratchKey2);
931 scratchKey = scratchKey2;
932 REPORTER_ASSERT(reporter, scratchKey.size() == TestResource::ExpectedScratchKeySize());
933 REPORTER_ASSERT(reporter, scratchKey1 != scratchKey);
934 REPORTER_ASSERT(reporter, scratchKey != scratchKey1);
935 REPORTER_ASSERT(reporter, scratchKey2 == scratchKey);
936 REPORTER_ASSERT(reporter, scratchKey == scratchKey2);
939 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey);
941 REPORTER_ASSERT(reporter, !cache->findAndRefScratchResource(scratchKey));
944 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey);
945 GrGpuResource* find = cache->findAndRefScratchResource(scratchKey);
949 scratchKey2 = scratchKey;
1107 GrScratchKey scratchKey;
1108 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey);
1109 GrGpuResource* scratch = cache->findAndRefScratchResource(scratchKey);
1115 scratch = cache->findAndRefScratchResource(scratchKey);