Lines Matching defs:descriptor

62   auto descriptor = std::make_shared<BufferDescriptor>();
63 descriptors_map_.emplace(descriptor->GetId(), descriptor);
64 *descriptor_id = descriptor->GetId();
71 const auto descriptor = descriptors_map_.find(descriptor_id);
72 if (descriptor == descriptors_map_.end()) {
75 descriptors_map_.erase(descriptor);
108 for (auto &descriptor : descriptors) {
109 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(),
110 descriptor->GetConsumerUsage(),
111 descriptor->GetFormat()));
127 // Allocate one and duplicate/copy the handles for each descriptor
133 // Create new handle for a given descriptor.
142 // Allocate separate buffer for each descriptor
158 void BufferManager::CreateSharedHandle(buffer_handle_t inbuffer, const BufferDescriptor &descriptor,
165 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);
167 // create new handle from input reference handle and given descriptor
168 int flags = GetHandleFlags(descriptor.GetFormat(), descriptor.GetProducerUsage(),
169 descriptor.GetConsumerUsage());
170 int buffer_type = GetBufferType(descriptor.GetFormat());
178 descriptor.GetWidth(),
179 descriptor.GetHeight(),
180 descriptor.GetFormat(),
183 descriptor.GetProducerUsage(),
184 descriptor.GetConsumerUsage());
456 int BufferManager::AllocateBuffer(const BufferDescriptor &descriptor, buffer_handle_t *handle,
461 int format = descriptor.GetFormat();
462 gralloc1_producer_usage_t prod_usage = descriptor.GetProducerUsage();
463 gralloc1_consumer_usage_t cons_usage = descriptor.GetConsumerUsage();
464 uint32_t layer_count = descriptor.GetLayerCount();
472 allocator_->GetBufferSizeAndDimensions(descriptor, &size, &alignedw, &alignedh);
514 descriptor.GetWidth(),
515 descriptor.GetHeight(),
561 BufferDescriptor descriptor(width, height, format);
562 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);
577 BufferDescriptor descriptor(width, width, format);
578 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);
618 // see if we can directly expect descriptor from gfx client.
631 BufferDescriptor descriptor(width, height, format, prod_usage, cons_usage);
634 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);
725 auto descriptor = BufferDescriptor(width, height, format, producer_usage, consumer_usage);
726 allocator_->GetBufferSizeAndDimensions(descriptor, size, aligned_width, aligned_height);
743 BufferDescriptor descriptor(width, height, format, producer_usage, consumer_usage);
746 allocator_->GetBufferSizeAndDimensions(descriptor, &size, &alignedw, &alignedh);
747 AllocateBuffer(descriptor, hnd, size);