Searched refs:bestFit (Results 1 – 2 of 2) sorted by relevance
341 Block* bestFit = bestFitIter.get(); in alloc() local342 if (bestFit) { in alloc()343 SkASSERT(align_size(bestFit->fOffset, fAlignment) == bestFit->fOffset); in alloc()344 *allocOffset = bestFit->fOffset; in alloc()347 VkDeviceSize originalBestFitOffset = bestFit->fOffset; in alloc()348 if (bestFit->fSize > alignedSize) { in alloc()349 bestFit->fOffset += alignedSize; in alloc()350 bestFit->fSize -= alignedSize; in alloc()352 if (bestFit->fSize >= secondLargestSize) { in alloc()353 fLargestBlockSize = bestFit->fSize; in alloc()[all …]
410 int bestFit = -1, maxScore = 0; in main() local421 bestFit = c; in main()425 if (bestFit >= 0) { in main()426 histogram[bestFit] += 1; in main()