Lines Matching refs:bestFit
341 Block* bestFit = bestFitIter.get(); in alloc() local
342 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()
354 fLargestBlockOffset = bestFit->fOffset; in alloc()
373 SkASSERT(bestFit->fSize == alignedSize); in alloc()
378 fFreeList.remove(bestFit); in alloc()