Home | History | Annotate | Download | only in libgralloc1

Lines Matching refs:allocator_

54   allocator_ = new Allocator();
55 allocator_->Init();
80 if (allocator_) {
81 delete allocator_;
109 descriptor->SetColorFormat(allocator_->GetImplDefinedFormat(descriptor->GetProducerUsage(),
118 shared = allocator_->CheckForBufferSharing(num_descriptors, descriptors, &max_buf_index);
165 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);
195 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset,
201 if (allocator_->FreeBuffer(reinterpret_cast<void *>(hnd->base_metadata), meta_size,
222 int ion_handle = allocator_->ImportBuffer(hnd->fd);
227 int ion_handle_meta = allocator_->ImportBuffer(hnd->fd_metadata);
261 if (allocator_->MapBuffer(reinterpret_cast<void **>(&hnd->base), hnd->size, hnd->offset,
267 if (allocator_->MapBuffer(reinterpret_cast<void **>(&hnd->base_metadata), size,
341 if (allocator_->CleanBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset,
367 if (allocator_->CleanBuffer(reinterpret_cast<void *>(hnd->base), hnd->size, hnd->offset,
432 if (allocator_->IsUBwcEnabled(format, prod_usage, cons_usage)) {
451 if (!allocator_->UseUncached(prod_usage, cons_usage)) {
479 int gralloc_format = allocator_->GetImplDefinedFormat(prod_usage, cons_usage, format);
484 allocator_->GetBufferSizeAndDimensions(descriptor, &size, &alignedw, &alignedh);
495 data.uncached = allocator_->UseUncached(prod_usage, cons_usage);
498 err = allocator_->AllocateMem(&data, prod_usage, cons_usage);
511 allocator_->AllocateMem(&e_data, GRALLOC1_PRODUCER_USAGE_NONE, GRALLOC1_CONSUMER_USAGE_NONE);
574 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);
590 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);
644 *tile_enabled = allocator_->IsUBwcEnabled(format, prod_usage, cons_usage);
646 allocator_->GetAlignedWidthAndHeight(descriptor, &alignedw, &alignedh);
689 if (allocator_->GetYUVPlaneInfo(hnd, ycbcr)) {
721 if (allocator_->GetRgbDataAddress(hnd, rgb_data)) {
738 allocator_->GetBufferSizeAndDimensions(descriptor, size, aligned_width, aligned_height);
758 allocator_->GetBufferSizeAndDimensions(descriptor, &size, &alignedw, &alignedh);
806 int err = allocator_->GetYUVPlaneInfo(hnd, &ycbcr);