Home
last modified time | relevance | path

Searched refs:allocator_ (Results 1 – 14 of 14) 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/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()
Dgoog_gralloc_wrapper.h95 sp<::android::hardware::graphics::allocator::V3_0::IAllocator> allocator_; variable
/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/sm8150/display/gralloc/
Dgr_buf_mgr.cpp739 allocator_ = new Allocator(); in BufferManager()
740 allocator_->Init(); in BufferManager()
749 if (allocator_) { in ~BufferManager()
750 delete allocator_; in ~BufferManager()
755 allocator_->SetProperties(props); in SetGrallocDebugProperties()
770 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, hnd->fd, in FreeBuffer()
775 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), in FreeBuffer()
832 int ion_handle = allocator_->ImportBuffer(hnd->fd); in ImportHandleLocked()
837 int ion_handle_meta = allocator_->ImportBuffer(hnd->fd_metadata); in ImportHandleLocked()
875 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.cpp724 allocator_ = new Allocator(); in BufferManager()
725 allocator_->Init(); in BufferManager()
734 if (allocator_) { in ~BufferManager()
735 delete allocator_; in ~BufferManager()
740 allocator_->SetProperties(props); in SetGrallocDebugProperties()
755 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset, hnd->fd, in FreeBuffer()
760 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size, in FreeBuffer()
816 int ion_handle = allocator_->ImportBuffer(hnd->fd); in ImportHandleLocked()
821 int ion_handle_meta = allocator_->ImportBuffer(hnd->fd_metadata); in ImportHandleLocked()
864 if (allocator_->MapBuffer(reinterpret_cast<void **>(&hnd->base), hnd->size, hnd->offset, in MapBuffer()
[all …]
Dgr_buf_mgr.h100 Allocator *allocator_ = NULL; variable