Home
last modified time | relevance | path

Searched refs:adjustedSize (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/base/
DSkContainers.cpp90 const size_t adjustedSize = std::max(size, kMinBytes); in sk_allocate_canfail() local
91 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() local
101 void* ptr = sk_malloc_throw(adjustedSize); in sk_allocate_throw()
102 return complete_size(ptr, adjustedSize); in sk_allocate_throw()
/external/oboe/src/common/
DQuirksManager.cpp43 int32_t adjustedSize = requestedSize; in clipBufferSize() local
44 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()
/external/angle/src/libANGLE/renderer/metal/
DBufferMtl.mm528 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