Lines Matching refs:store
80 void setComponentStore(std::shared_ptr<C2ComponentStore> store);
195 std::shared_ptr<C2ComponentStore> store) { in UseComponentStoreForIonAllocator() argument
207 c2_status_t res = store->querySupportedValues_sm(query); in UseComponentStoreForIonAllocator()
226 mapper = [store](C2MemoryUsage usage, size_t capacity, in UseComponentStoreForIonAllocator()
233 c2_status_t res = store->config_sm({&usageInfo}, &failures); in UseComponentStoreForIonAllocator()
247 std::shared_ptr<C2ComponentStore> store) { in UseComponentStoreForDmaBufAllocator() argument
263 c2_status_t res = store->querySupportedValues_sm(query); in UseComponentStoreForDmaBufAllocator()
282 mapper = [store](C2MemoryUsage usage, size_t capacity, C2String* heapName, in UseComponentStoreForDmaBufAllocator()
292 c2_status_t res = store->config_sm({&*usageInfo}, &failures); in UseComponentStoreForDmaBufAllocator()
307 void C2PlatformAllocatorStoreImpl::setComponentStore(std::shared_ptr<C2ComponentStore> store) { in setComponentStore() argument
313 _mComponentStore = store; in setComponentStore()
321 UseComponentStoreForIonAllocator(ionAllocator, store); in setComponentStore()
329 UseComponentStoreForDmaBufAllocator(dmaAllocator, store); in setComponentStore()
424 std::shared_ptr<C2PlatformAllocatorStoreImpl> store = gPlatformAllocatorStore.lock(); in GetCodec2PlatformAllocatorStore() local
425 if (store == nullptr) { in GetCodec2PlatformAllocatorStore()
426 store = std::make_shared<C2PlatformAllocatorStoreImpl>(); in GetCodec2PlatformAllocatorStore()
427 store->setComponentStore(GetPreferredCodec2ComponentStore()); in GetCodec2PlatformAllocatorStore()
428 gPlatformAllocatorStore = store; in GetCodec2PlatformAllocatorStore()
430 return store; in GetCodec2PlatformAllocatorStore()
1336 std::shared_ptr<C2ComponentStore> store = platformStore.lock(); in GetCodec2PlatformComponentStore() local
1337 if (store == nullptr) { in GetCodec2PlatformComponentStore()
1338 store = std::make_shared<C2PlatformComponentStore>(); in GetCodec2PlatformComponentStore()
1339 platformStore = store; in GetCodec2PlatformComponentStore()
1341 return store; in GetCodec2PlatformComponentStore()