Searched refs:byteLimit (Results 1 – 9 of 9) sorted by relevance
478 public int pushLimit(int byteLimit) throws InvalidProtocolBufferNanoException { in pushLimit() argument479 if (byteLimit < 0) { in pushLimit()482 byteLimit += bufferPos; in pushLimit()484 if (byteLimit > oldLimit) { in pushLimit()487 currentLimit = byteLimit; in pushLimit()
89 SkResourceCache::SkResourceCache(size_t byteLimit) { in SkResourceCache() argument91 fTotalByteLimit = byteLimit; in SkResourceCache()193 size_t byteLimit; in purgeAsNeeded() local198 byteLimit = SK_MaxU32; // no limit based on bytes in purgeAsNeeded()201 byteLimit = fTotalByteLimit; in purgeAsNeeded()206 if (!forcePurge && fTotalBytesUsed < byteLimit && fCount < countLimit) { in purgeAsNeeded()
208 explicit SkResourceCache(size_t byteLimit);
535 public int pushLimit(int byteLimit) throws InvalidProtocolBufferMicroException { in pushLimit() argument536 if (byteLimit < 0) { in pushLimit()539 byteLimit += totalBytesRetired + bufferPos; in pushLimit()541 if (byteLimit > oldLimit) { in pushLimit()544 currentLimit = byteLimit; in pushLimit()
930 internal int PushLimit(int byteLimit) in PushLimit() argument932 if (byteLimit < 0) in PushLimit()936 byteLimit += totalBytesRetired + bufferPos; in PushLimit()938 if (byteLimit > oldLimit) in PushLimit()942 currentLimit = byteLimit; in PushLimit()
261 size_t byteLimit) {262 byteLimit += state->bufferPos;264 if (byteLimit > oldLimit) {266 format:@"byteLimit > oldLimit: %tu > %tu", byteLimit, oldLimit];268 state->currentLimit = byteLimit;
106 size_t byteLimit);
124 const size_t byteLimit = 100 * 1024; in DEF_TEST() local126 SkResourceCache cache(byteLimit); in DEF_TEST()130 sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Make(byteLimit)); in DEF_TEST()
978 public int pushLimit(int byteLimit) throws InvalidProtocolBufferException { in pushLimit() argument979 if (byteLimit < 0) { in pushLimit()982 byteLimit += totalBytesRetired + bufferPos; in pushLimit()984 if (byteLimit > oldLimit) { in pushLimit()987 currentLimit = byteLimit; in pushLimit()