Searched refs:countNeeded (Results 1 – 2 of 2) sorted by relevance
243 int countNeeded = 0; in internalPurge() local245 countNeeded = fCacheCount - fCacheCountLimit; in internalPurge()247 countNeeded = std::max(countNeeded, fCacheCount >> 2); in internalPurge()251 if (!countNeeded && !bytesNeeded) { in internalPurge()261 while (strike != nullptr && (bytesFreed < bytesNeeded || countFreed < countNeeded)) { in internalPurge()
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()