Searched refs:adjustedSize (Results 1 – 3 of 3) sorted by relevance
90 const size_t adjustedSize = std::max(size, kMinBytes); in sk_allocate_canfail() local91 void* ptr = sk_malloc_canfail(adjustedSize); in sk_allocate_canfail()92 return complete_size(ptr, adjustedSize); in sk_allocate_canfail()100 const size_t adjustedSize = std::max(size, kMinBytes); in sk_allocate_throw() local101 void* ptr = sk_malloc_throw(adjustedSize); in sk_allocate_throw()102 return complete_size(ptr, adjustedSize); in sk_allocate_throw()
43 int32_t adjustedSize = requestedSize; in clipBufferSize() local44 if (adjustedSize < minSize ) { in clipBufferSize()45 adjustedSize = minSize; in clipBufferSize()48 if (adjustedSize > maxSize ) { in clipBufferSize()49 adjustedSize = maxSize; in clipBufferSize()52 return adjustedSize; in clipBufferSize()
528 size_t adjustedSize = std::max<size_t>(1, intendedSize);536 adjustedSize = roundUpPow2(adjustedSize, (size_t)16);551 ANGLE_TRY(bufferManager.getBuffer(contextMtl, storageMode, adjustedSize, mBuffer));563 adjustedSize <= mtl::kSharedMemBufferMaxBufSizeHint)564 ? adjustedSize