Lines Matching refs:allocator

69             id_t id, std::shared_ptr<C2Allocator> *const allocator) override;
140 id_t id, std::shared_ptr<C2Allocator> *const allocator) { in fetchAllocator() argument
141 allocator->reset(); in fetchAllocator()
149 *allocator = fetchIonAllocator(); in fetchAllocator()
151 *allocator = fetchDmaBufAllocator(); in fetchAllocator()
156 *allocator = fetchGrallocAllocator(); in fetchAllocator()
160 *allocator = fetchBufferQueueAllocator(); in fetchAllocator()
164 *allocator = fetchBlobAllocator(); in fetchAllocator()
168 *allocator = fetchIgbaAllocator(); in fetchAllocator()
174 C2PlatformStorePluginLoader::GetInstance()->createAllocator(id, allocator); in fetchAllocator()
180 if (*allocator == nullptr) { in fetchAllocator()
194 const std::shared_ptr<C2AllocatorIon> allocator, in UseComponentStoreForIonAllocator() argument
243 allocator->setUsageMapper(mapper, minUsage, maxUsage, blockSize); in UseComponentStoreForIonAllocator()
246 void UseComponentStoreForDmaBufAllocator(const std::shared_ptr<C2DmaBufAllocator> allocator, in UseComponentStoreForDmaBufAllocator() argument
302 allocator->setUsageMapper(mapper, minUsage, maxUsage, blockSize); in UseComponentStoreForDmaBufAllocator()
335 std::shared_ptr<C2AllocatorIon> allocator = gIonAllocator.lock(); in fetchIonAllocator() local
336 if (allocator == nullptr) { in fetchIonAllocator()
342 allocator = std::make_shared<C2AllocatorIon>(C2PlatformAllocatorStore::ION); in fetchIonAllocator()
343 UseComponentStoreForIonAllocator(allocator, componentStore); in fetchIonAllocator()
344 gIonAllocator = allocator; in fetchIonAllocator()
346 return allocator; in fetchIonAllocator()
351 std::shared_ptr<C2DmaBufAllocator> allocator = gDmaBufAllocator.lock(); in fetchDmaBufAllocator() local
352 if (allocator == nullptr) { in fetchDmaBufAllocator()
358 allocator = std::make_shared<C2DmaBufAllocator>(C2PlatformAllocatorStore::DMABUFHEAP); in fetchDmaBufAllocator()
359 UseComponentStoreForDmaBufAllocator(allocator, componentStore); in fetchDmaBufAllocator()
360 gDmaBufAllocator = allocator; in fetchDmaBufAllocator()
362 return allocator; in fetchDmaBufAllocator()
369 std::shared_ptr<C2Allocator> allocator = blobAllocator.lock(); in fetchBlobAllocator() local
370 if (allocator == nullptr) { in fetchBlobAllocator()
371 allocator = std::make_shared<C2AllocatorBlob>(C2PlatformAllocatorStore::BLOB); in fetchBlobAllocator()
372 blobAllocator = allocator; in fetchBlobAllocator()
374 return allocator; in fetchBlobAllocator()
381 std::shared_ptr<C2Allocator> allocator = grallocAllocator.lock(); in fetchGrallocAllocator() local
382 if (allocator == nullptr) { in fetchGrallocAllocator()
383 allocator = std::make_shared<C2AllocatorGralloc>(C2PlatformAllocatorStore::GRALLOC); in fetchGrallocAllocator()
384 grallocAllocator = allocator; in fetchGrallocAllocator()
386 return allocator; in fetchGrallocAllocator()
393 std::shared_ptr<C2Allocator> allocator = grallocAllocator.lock(); in fetchBufferQueueAllocator() local
394 if (allocator == nullptr) { in fetchBufferQueueAllocator()
395 allocator = std::make_shared<C2AllocatorGralloc>( in fetchBufferQueueAllocator()
397 grallocAllocator = allocator; in fetchBufferQueueAllocator()
399 return allocator; in fetchBufferQueueAllocator()
406 std::shared_ptr<C2Allocator> allocator = ahwbAllocator.lock(); in fetchIgbaAllocator() local
407 if (allocator == nullptr) { in fetchIgbaAllocator()
408 allocator = std::make_shared<C2AllocatorAhwb>(C2PlatformAllocatorStore::IGBA); in fetchIgbaAllocator()
409 ahwbAllocator = allocator; in fetchIgbaAllocator()
411 return allocator; in fetchIgbaAllocator()
504 std::shared_ptr<C2Allocator> allocator; in _createBlockPool() local
519 C2PlatformAllocatorStore::ION, &allocator); in _createBlockPool()
522 new C2PooledBlockPool(allocator, poolId, GetBufferPoolVer()), deleter); in _createBlockPool()
532 C2PlatformAllocatorStore::BLOB, &allocator); in _createBlockPool()
535 new C2PooledBlockPool(allocator, poolId, GetBufferPoolVer()), deleter); in _createBlockPool()
546 C2AllocatorStore::DEFAULT_GRAPHIC, &allocator); in _createBlockPool()
549 new C2PooledBlockPool(allocator, poolId, GetBufferPoolVer()), deleter); in _createBlockPool()
559 C2PlatformAllocatorStore::BUFFERQUEUE, &allocator); in _createBlockPool()
562 new C2BufferQueueBlockPool(allocator, poolId), deleter); in _createBlockPool()
577 C2PlatformAllocatorStore::IGBA, &allocator); in _createBlockPool()
580 new C2IgbaBlockPool(allocator, in _createBlockPool()
613 C2PlatformAllocatorDesc allocator; in createBlockPool() local
614 allocator.allocatorId = allocatorId; in createBlockPool()
615 return createBlockPool(allocator, components, pool); in createBlockPool()
619 C2PlatformAllocatorDesc &allocator, in createBlockPool() argument
623 return _createBlockPool(allocator, components, mBlockPoolSeqId++, in createBlockPool()
656 C2PlatformAllocatorDesc allocator; in getBlockPool() local
657 allocator.allocatorId = C2PlatformAllocatorStore::BUFFERQUEUE; in getBlockPool()
659 allocator, {component}, blockPoolId, mBqPoolDeferDeallocAfterStop, pool); in getBlockPool()
686 std::shared_ptr<C2Allocator> allocator; in GetCodec2BlockPool() local
695 res = allocatorStore->fetchAllocator(C2AllocatorStore::DEFAULT_LINEAR, &allocator); in GetCodec2BlockPool()
697 *pool = std::make_shared<C2BasicLinearBlockPool>(allocator); in GetCodec2BlockPool()
701 res = allocatorStore->fetchAllocator(C2AllocatorStore::DEFAULT_GRAPHIC, &allocator); in GetCodec2BlockPool()
703 *pool = std::make_shared<C2BasicGraphicBlockPool>(allocator); in GetCodec2BlockPool()
718 C2PlatformAllocatorDesc allocator; in CreateCodec2BlockPool() local
719 allocator.allocatorId = allocatorId; in CreateCodec2BlockPool()
720 return sBlockPoolCache->createBlockPool(allocator, components, pool); in CreateCodec2BlockPool()
729 C2PlatformAllocatorDesc allocator; in CreateCodec2BlockPool() local
730 allocator.allocatorId = allocatorId; in CreateCodec2BlockPool()
731 return sBlockPoolCache->createBlockPool(allocator, {component}, pool); in CreateCodec2BlockPool()
735 C2PlatformAllocatorDesc &allocator, in CreateCodec2BlockPool() argument
740 return sBlockPoolCache->createBlockPool(allocator, components, pool); in CreateCodec2BlockPool()
744 C2PlatformAllocatorDesc &allocator, in CreateCodec2BlockPool() argument
749 return sBlockPoolCache->createBlockPool(allocator, {component}, pool); in CreateCodec2BlockPool()