Home
last modified time | relevance | path

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

/system/core/libpixelflinger/codeflinger/tinyutils/
DVectorImpl.cpp244 ssize_t VectorImpl::setCapacity(size_t new_capacity) in setCapacity() argument
247 ssize_t amount = new_capacity - size(); in setCapacity()
252 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in setCapacity()
261 return new_capacity; in setCapacity()
285 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2); in _grow() local
293 SharedBuffer* sb = cur_sb->editResize(new_capacity * mItemSize); in _grow()
296 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in _grow()
338 const size_t new_capacity = max(kMinVectorCapacity, new_size*2); in _shrink() local
345 SharedBuffer* sb = cur_sb->editResize(new_capacity * mItemSize); in _shrink()
348 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in _shrink()