Searched refs:countNeeded (Results 1 – 2 of 2) sorted by relevance
523 int countNeeded = 0; in internalPurge() local525 countNeeded = fCacheCount - fCacheCountLimit; in internalPurge()527 countNeeded = SkMax32(countNeeded, fCacheCount >> 2); in internalPurge()531 if (!countNeeded && !bytesNeeded) { in internalPurge()541 while (node != nullptr && (bytesFreed < bytesNeeded || countFreed < countNeeded)) { in internalPurge()
548 int countNeeded = 0; in internalPurge() local550 countNeeded = fCacheCount - fCacheCountLimit; in internalPurge()552 countNeeded = SkMax32(countNeeded, fCacheCount >> 2); in internalPurge()556 if (!countNeeded && !bytesNeeded) { in internalPurge()566 while (node != nullptr && (bytesFreed < bytesNeeded || countFreed < countNeeded)) { in internalPurge()