Home
last modified time | relevance | path

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

/hardware/qcom/display/msm8998/libgralloc1/
Dgr_buf_mgr.cpp54 allocator_ = new Allocator(); in BufferManager()
55 allocator_->Init(); in BufferManager()
80 if (allocator_) { in ~BufferManager()
81 delete allocator_; in ~BufferManager()
109 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(), in AllocateBuffers()
118 shared = allocator_->CheckForBufferSharing(num_descriptors, descriptors, &max_buf_index); in AllocateBuffers()
165 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh); in CreateSharedHandle()
200 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, in FreeBuffer()
206 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size, in FreeBuffer()
233 int ion_handle = allocator_->ImportBuffer(hnd->fd); in ImportHandleLocked()
[all …]
Dgr_buf_mgr.h122 Allocator *allocator_ = NULL; variable
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_buf_mgr.cpp54 allocator_ = new Allocator(); in BufferManager()
55 allocator_->Init(); in BufferManager()
80 if (allocator_) { in ~BufferManager()
81 delete allocator_; in ~BufferManager()
109 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(), in AllocateBuffers()
118 shared = allocator_->CheckForBufferSharing(num_descriptors, descriptors, &max_buf_index); in AllocateBuffers()
165 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh); in CreateSharedHandle()
195 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, in FreeBuffer()
201 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size, in FreeBuffer()
222 int ion_handle = allocator_->ImportBuffer(hnd->fd); in ImportHandleLocked()
[all …]
Dgr_buf_mgr.h122 Allocator *allocator_ = NULL; variable
/hardware/qcom/sdm845/display/gralloc/
Dgr_buf_mgr.cpp42 allocator_ = new Allocator(); in BufferManager()
43 allocator_->Init(); in BufferManager()
52 if (allocator_) { in ~BufferManager()
53 delete allocator_; in ~BufferManager()
66 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, hnd->fd, in FreeBuffer()
72 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size, in FreeBuffer()
88 info.format = allocator_->GetImplDefinedFormat(info.usage, info.format); in ValidateBufferSize()
109 int ion_handle = allocator_->ImportBuffer(hnd->fd); in ImportHandleLocked()
114 int ion_handle_meta = allocator_->ImportBuffer(hnd->fd_metadata); in ImportHandleLocked()
146 if (allocator_->MapBuffer(reinterpret_cast<void **>(&hnd->base), hnd->size, hnd->offset, in MapBuffer()
[all …]
Dgr_buf_mgr.h89 Allocator *allocator_ = NULL; variable
/hardware/google/camera/common/sensor_listener/
Dgoog_gralloc_wrapper.cc33 allocator_ = IAllocator::getService(); in GoogGrallocWrapper()
34 if (allocator_ == nullptr) { in GoogGrallocWrapper()
65 return allocator_; in GetAllocator()
70 allocator_->dumpDebugInfo([&debug_info](const auto& tmp_debug_info) { in DumpDebugInfo()
96 allocator_->allocate( in Allocate()
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_buf_mgr.cpp53 allocator_ = new Allocator(); in BufferManager()
54 allocator_->Init(); in BufferManager()
79 if (allocator_) { in ~BufferManager()
80 delete allocator_; in ~BufferManager()
108 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(), in AllocateBuffers()
117 shared = allocator_->CheckForBufferSharing(num_descriptors, descriptors, &max_buf_index); in AllocateBuffers()
196 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, in FreeBuffer()
202 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size, in FreeBuffer()
225 int ion_handle = allocator_->ImportBuffer(hnd->fd); in ImportHandleLocked()
230 int ion_handle_meta = allocator_->ImportBuffer(hnd->fd_metadata); in ImportHandleLocked()
[all …]
Dgr_buf_mgr.h121 Allocator *allocator_ = NULL; variable
/hardware/qcom/display/msm8909/gralloc/
Dgr_buf_mgr.cpp53 allocator_ = new Allocator(); in BufferManager()
54 allocator_->Init(); in BufferManager()
79 if (allocator_) { in ~BufferManager()
80 delete allocator_; in ~BufferManager()
108 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(), in AllocateBuffers()
117 shared = allocator_->CheckForBufferSharing(num_descriptors, descriptors, &max_buf_index); in AllocateBuffers()
202 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, in FreeBuffer()
208 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size, in FreeBuffer()
231 int ion_handle = allocator_->ImportBuffer(hnd->fd); in ImportHandleLocked()
236 int ion_handle_meta = allocator_->ImportBuffer(hnd->fd_metadata); in ImportHandleLocked()
[all …]
Dgr_buf_mgr.h121 Allocator *allocator_ = NULL; variable
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dhwc_buffer_allocator.cpp52 if (mapper_ != nullptr || allocator_ != nullptr) { in GetGrallocInstance()
56 allocator_ = IAllocator::getService(); in GetGrallocInstance()
59 if (mapper_ == nullptr || allocator_ == nullptr) { in GetGrallocInstance()
120 allocator_->allocate(descriptor, 1, in AllocateBuffer()
Dhwc_buffer_allocator.h69 android::sp<IAllocator> allocator_; variable
/hardware/qcom/sm8150/display/gralloc/
Dgr_buf_mgr.cpp700 allocator_ = new Allocator(); in BufferManager()
701 allocator_->Init(); in BufferManager()
710 if (allocator_) { in ~BufferManager()
711 delete allocator_; in ~BufferManager()
716 allocator_->SetProperties(props); in SetGrallocDebugProperties()
731 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, hnd->fd, in FreeBuffer()
736 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), in FreeBuffer()
794 int ion_handle = allocator_->ImportBuffer(hnd->fd); in ImportHandleLocked()
799 int ion_handle_meta = allocator_->ImportBuffer(hnd->fd_metadata); in ImportHandleLocked()
837 if (allocator_->MapBuffer(reinterpret_cast<void **>(&hnd->base), hnd->size, hnd->offset, in MapBuffer()
[all …]
Dgr_buf_mgr.h99 Allocator *allocator_ = NULL; variable
/hardware/qcom/sm7250/display/gralloc/
Dgr_buf_mgr.cpp699 allocator_ = new Allocator(); in BufferManager()
700 allocator_->Init(); in BufferManager()
709 if (allocator_) { in ~BufferManager()
710 delete allocator_; in ~BufferManager()
715 allocator_->SetProperties(props); in SetGrallocDebugProperties()
730 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, hnd->fd, in FreeBuffer()
735 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size, in FreeBuffer()
792 int ion_handle = allocator_->ImportBuffer(hnd->fd); in ImportHandleLocked()
797 int ion_handle_meta = allocator_->ImportBuffer(hnd->fd_metadata); in ImportHandleLocked()
840 if (allocator_->MapBuffer(reinterpret_cast<void **>(&hnd->base), hnd->size, hnd->offset, in MapBuffer()
[all …]
Dgr_buf_mgr.h100 Allocator *allocator_ = NULL; variable