Home
last modified time | relevance | path

Searched refs:countNeeded (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/core/
DSkStrikeCache.cpp243 int countNeeded = 0; in internalPurge() local
245 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()
/external/skqp/src/core/
DSkStrikeCache.cpp523 int countNeeded = 0; in internalPurge() local
525 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()