Home | History | Annotate | Download | only in libgralloc1

Lines Matching refs:descriptor

85     // Allocate one and duplicate/copy the handles for each descriptor
91 // Create new handle for a given descriptor.
106 // Allocate seperate buffer for each descriptor
122 void BufferManager::CreateSharedHandle(buffer_handle_t inbuffer, const BufferDescriptor &descriptor,
128 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);
130 // create new handle from input reference handle and given descriptor
131 int flags = GetHandleFlags(descriptor.GetFormat(), descriptor.GetProducerUsage(),
132 descriptor.GetConsumerUsage());
133 int buffer_type = GetBufferType(descriptor.GetFormat());
137 dup(input->fd), input->size, flags, buffer_type, descriptor.GetFormat(), INT(alignedw),
139 descriptor.GetWidth(), descriptor.GetHeight(), descriptor.GetProducerUsage(),
140 descriptor.GetConsumerUsage());
436 int BufferManager::AllocateBuffer(const BufferDescriptor &descriptor, buffer_handle_t *handle,
441 int format = descriptor.GetFormat();
442 gralloc1_producer_usage_t prod_usage = descriptor.GetProducerUsage();
443 gralloc1_consumer_usage_t cons_usage = descriptor.GetConsumerUsage();
461 allocator_->GetBufferSizeAndDimensions(descriptor, &size, &alignedw, &alignedh);
469 err = AllocateBuffer(size, INT(alignedw), INT(alignedh), descriptor.GetWidth(),
470 descriptor.GetHeight(), format, buffer_type, descriptor.GetProducerUsage(),
471 descriptor.GetConsumerUsage(), handle);
504 BufferDescriptor descriptor(width, height, format);
505 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);
520 BufferDescriptor descriptor(width, width, format);
521 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);
561 // see if we can directly expect descriptor from gfx client.
574 BufferDescriptor descriptor(width, height, format, prod_usage, cons_usage);
578 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);