Lines Matching refs:allocator
58 id_t id, std::shared_ptr<C2Allocator> *const allocator) override;
94 id_t id, std::shared_ptr<C2Allocator> *const allocator) { in fetchAllocator() argument
95 allocator->reset(); in fetchAllocator()
100 *allocator = fetchIonAllocator(); in fetchAllocator()
105 *allocator = fetchGrallocAllocator(); in fetchAllocator()
109 *allocator = fetchBufferQueueAllocator(); in fetchAllocator()
115 C2PlatformStorePluginLoader::GetInstance()->createAllocator(id, allocator); in fetchAllocator()
121 if (*allocator == nullptr) { in fetchAllocator()
133 const std::shared_ptr<C2AllocatorIon> allocator, in UseComponentStoreForIonAllocator() argument
182 allocator->setUsageMapper(mapper, minUsage, maxUsage, blockSize); in UseComponentStoreForIonAllocator()
195 std::shared_ptr<C2AllocatorIon> allocator; in setComponentStore() local
198 allocator = gIonAllocator.lock(); in setComponentStore()
200 if (allocator) { in setComponentStore()
201 UseComponentStoreForIonAllocator(allocator, store); in setComponentStore()
207 std::shared_ptr<C2AllocatorIon> allocator = gIonAllocator.lock(); in fetchIonAllocator() local
208 if (allocator == nullptr) { in fetchIonAllocator()
214 allocator = std::make_shared<C2AllocatorIon>(C2PlatformAllocatorStore::ION); in fetchIonAllocator()
215 UseComponentStoreForIonAllocator(allocator, componentStore); in fetchIonAllocator()
216 gIonAllocator = allocator; in fetchIonAllocator()
218 return allocator; in fetchIonAllocator()
225 std::shared_ptr<C2Allocator> allocator = grallocAllocator.lock(); in fetchGrallocAllocator() local
226 if (allocator == nullptr) { in fetchGrallocAllocator()
227 allocator = std::make_shared<C2AllocatorGralloc>(C2PlatformAllocatorStore::GRALLOC); in fetchGrallocAllocator()
228 grallocAllocator = allocator; in fetchGrallocAllocator()
230 return allocator; in fetchGrallocAllocator()
237 std::shared_ptr<C2Allocator> allocator = grallocAllocator.lock(); in fetchBufferQueueAllocator() local
238 if (allocator == nullptr) { in fetchBufferQueueAllocator()
239 allocator = std::make_shared<C2AllocatorGralloc>( in fetchBufferQueueAllocator()
241 grallocAllocator = allocator; in fetchBufferQueueAllocator()
243 return allocator; in fetchBufferQueueAllocator()
304 std::shared_ptr<C2Allocator> allocator; in _createBlockPool() local
311 C2AllocatorStore::DEFAULT_LINEAR, &allocator); in _createBlockPool()
315 allocator, poolId); in _createBlockPool()
324 C2AllocatorStore::DEFAULT_GRAPHIC, &allocator); in _createBlockPool()
327 std::make_shared<C2PooledBlockPool>(allocator, poolId); in _createBlockPool()
335 C2PlatformAllocatorStore::BUFFERQUEUE, &allocator); in _createBlockPool()
339 allocator, poolId); in _createBlockPool()
409 std::shared_ptr<C2Allocator> allocator; in GetCodec2BlockPool() local
420 res = allocatorStore->fetchAllocator(C2AllocatorStore::DEFAULT_LINEAR, &allocator); in GetCodec2BlockPool()
422 *pool = std::make_shared<C2BasicLinearBlockPool>(allocator); in GetCodec2BlockPool()
426 res = allocatorStore->fetchAllocator(C2AllocatorStore::DEFAULT_GRAPHIC, &allocator); in GetCodec2BlockPool()
428 *pool = std::make_shared<C2BasicGraphicBlockPool>(allocator); in GetCodec2BlockPool()