Home | History | Annotate | Download | only in ppapi

Lines Matching defs:Capacity

39 uint32_t PpbBuffer::Capacity() const {
48 PP_DCHECK(size <= Capacity());
49 if (size > Capacity()) {
79 cdm::Buffer* PpbBufferAllocator::Allocate(uint32_t capacity) {
82 if (!capacity)
88 // Reuse a buffer in the free list if there is one that fits |capacity|.
90 FreeBufferMap::iterator found = free_buffers_.lower_bound(capacity);
93 buffer = AllocateNewBuffer(capacity);
123 pp::Buffer_Dev PpbBufferAllocator::AllocateNewBuffer(uint32_t capacity) {
140 return pp::Buffer_Dev(instance_, capacity + kBufferPadding);