HomeSort by relevance Sort by last modified time
    Searched refs:scratchKey (Results 1 - 6 of 6) sorted by null

  /external/skia/tests/
ResourceCacheTest.cpp 752 GrScratchKey scratchKey;
753 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey);
757 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));)
771 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));)
    [all...]
  /external/skqp/tests/
ResourceCacheTest.cpp 682 GrScratchKey scratchKey;
683 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey);
687 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));)
701 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));)
707 SkDEBUGCODE(REPORTER_ASSERT(reporter, 0 == cache->countScratchEntriesForKey(scratchKey));)
724 GrScratchKey scratchKey;
726 TestResource::ComputeScratchKey(TestResource::kA_SimulatedProperty, &scratchKey);
728 REPORTER_ASSERT(reporter, cache->findAndRefScratchResource(scratchKey, TestResource::kDefaultSize, 0) == nullptr);
731 TestResource::ComputeScratchKey(TestResource::kB_SimulatedProperty, &scratchKey);
733 SkDEBUGCODE(REPORTER_ASSERT(reporter, 2 == cache->countScratchEntriesForKey(scratchKey));)
    [all...]
  /external/skia/src/gpu/
GrResourceCache.h 138 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey,
144 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const {
145 return fScratchMap.countForKey(scratchKey);
GrResourceCache.cpp 245 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey,
248 SkASSERT(scratchKey.isValid());
252 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(true));
269 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(false));
778 const GrScratchKey& scratchKey = resource->resourcePriv().getScratchKey();
784 SkASSERT(fScratchMap->countForKey(scratchKey));
786 } else if (scratchKey.isValid()) {
791 SkASSERT(fScratchMap->countForKey(scratchKey));
801 if (scratchKey.isValid()) {
802 SkASSERT(!fScratchMap->has(resource, scratchKey));
    [all...]
  /external/skqp/src/gpu/
GrResourceCache.h 138 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey,
144 int countScratchEntriesForKey(const GrScratchKey& scratchKey) const {
145 return fScratchMap.countForKey(scratchKey);
GrResourceCache.cpp 245 GrGpuResource* GrResourceCache::findAndRefScratchResource(const GrScratchKey& scratchKey,
248 SkASSERT(scratchKey.isValid());
252 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(true));
269 resource = fScratchMap.find(scratchKey, AvailableForScratchUse(false));
757 const GrScratchKey& scratchKey = resource->resourcePriv().getScratchKey();
763 SkASSERT(fScratchMap->countForKey(scratchKey));
765 } else if (scratchKey.isValid()) {
770 SkASSERT(fScratchMap->countForKey(scratchKey));
780 if (scratchKey.isValid()) {
781 SkASSERT(!fScratchMap->has(resource, scratchKey));
    [all...]

Completed in 232 milliseconds