• Home
  • Raw
  • Download

Lines Matching refs:descriptor

62   auto descriptor = std::make_shared<BufferDescriptor>();  in CreateBufferDescriptor()  local
63 descriptors_map_.emplace(descriptor->GetId(), descriptor); in CreateBufferDescriptor()
64 *descriptor_id = descriptor->GetId(); in CreateBufferDescriptor()
71 const auto descriptor = descriptors_map_.find(descriptor_id); in DestroyBufferDescriptor() local
72 if (descriptor == descriptors_map_.end()) { in DestroyBufferDescriptor()
75 descriptors_map_.erase(descriptor); in DestroyBufferDescriptor()
108 for (auto &descriptor : descriptors) { in AllocateBuffers() local
109 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(), in AllocateBuffers()
110 descriptor->GetConsumerUsage(), in AllocateBuffers()
111 descriptor->GetFormat())); in AllocateBuffers()
158 void BufferManager::CreateSharedHandle(buffer_handle_t inbuffer, const BufferDescriptor &descriptor, in CreateSharedHandle() argument
165 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh); in CreateSharedHandle()
168 int flags = GetHandleFlags(descriptor.GetFormat(), descriptor.GetProducerUsage(), in CreateSharedHandle()
169 descriptor.GetConsumerUsage()); in CreateSharedHandle()
170 int buffer_type = GetBufferType(descriptor.GetFormat()); in CreateSharedHandle()
179 descriptor.GetWidth(), in CreateSharedHandle()
180 descriptor.GetHeight(), in CreateSharedHandle()
181 descriptor.GetFormat(), in CreateSharedHandle()
184 descriptor.GetProducerUsage(), in CreateSharedHandle()
185 descriptor.GetConsumerUsage()); in CreateSharedHandle()
448 int BufferManager::AllocateBuffer(const BufferDescriptor &descriptor, buffer_handle_t *handle, in AllocateBuffer() argument
453 int format = descriptor.GetFormat(); in AllocateBuffer()
454 gralloc1_producer_usage_t prod_usage = descriptor.GetProducerUsage(); in AllocateBuffer()
455 gralloc1_consumer_usage_t cons_usage = descriptor.GetConsumerUsage(); in AllocateBuffer()
456 uint32_t layer_count = descriptor.GetLayerCount(); in AllocateBuffer()
464 allocator_->GetBufferSizeAndDimensions(descriptor, &size, &alignedw, &alignedh); in AllocateBuffer()
505 descriptor.GetWidth(), in AllocateBuffer()
506 descriptor.GetHeight(), in AllocateBuffer()
552 BufferDescriptor descriptor(width, height, format); in Perform() local
553 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh); in Perform()
568 BufferDescriptor descriptor(width, width, format); in Perform() local
569 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh); in Perform()
622 BufferDescriptor descriptor(width, height, format, prod_usage, cons_usage); in Perform() local
625 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh); in Perform()
716 auto descriptor = BufferDescriptor(width, height, format, producer_usage, consumer_usage); in Perform() local
717 allocator_->GetBufferSizeAndDimensions(descriptor, size, aligned_width, aligned_height); in Perform()
731 BufferDescriptor descriptor(width, height, format, producer_usage, consumer_usage); in Perform() local
734 allocator_->GetBufferSizeAndDimensions(descriptor, &size, &alignedw, &alignedh); in Perform()
735 AllocateBuffer(descriptor, hnd, size); in Perform()
848 BufferDescriptor descriptor) { in ValidateBufferSize() argument
850 const int format = allocator_->GetImplDefinedFormat(descriptor.GetProducerUsage(), in ValidateBufferSize()
851 descriptor.GetConsumerUsage(), in ValidateBufferSize()
852 descriptor.GetFormat()); in ValidateBufferSize()
853 descriptor.SetColorFormat(format); in ValidateBufferSize()
854 allocator_->GetBufferSizeAndDimensions(descriptor, &size, &alignedw, &alignedh); in ValidateBufferSize()