Skip to content
Snippets Groups Projects
Commit 7ecc6f2b authored by Yuichiro Hanada's avatar Yuichiro Hanada Committed by Automerger Merge Worker
Browse files

C2VdaBqBlockPool: reflects C2BufferQueueBlockPoolData change. am: 42116ed3

parents 49556b58 42116ed3
No related branches found
No related tags found
No related merge requests found
...@@ -562,11 +562,12 @@ c2_status_t C2VdaBqBlockPool::Impl::fetchGraphicBlock( ...@@ -562,11 +562,12 @@ c2_status_t C2VdaBqBlockPool::Impl::fetchGraphicBlock(
} }
std::shared_ptr<C2SurfaceSyncMemory> syncMem; std::shared_ptr<C2SurfaceSyncMemory> syncMem;
// TODO: the |owner| argument should be set correctly.
std::shared_ptr<C2GraphicAllocation> allocation = std::shared_ptr<C2GraphicAllocation> allocation =
mTrackedGraphicBuffers.getRegisteredAllocation(uniqueId); mTrackedGraphicBuffers.getRegisteredAllocation(uniqueId);
auto poolData = std::make_shared<C2BufferQueueBlockPoolData>( auto poolData = std::make_shared<C2BufferQueueBlockPoolData>(
slotBuffer->getGenerationNumber(), mProducerId, slot, slotBuffer->getGenerationNumber(), mProducerId, slot, std::make_shared<int>(0),
mProducer->getBase(), syncMem, 0); mProducer->getBase(), syncMem);
mTrackedGraphicBuffers.updatePoolData(slot, poolData); mTrackedGraphicBuffers.updatePoolData(slot, poolData);
*block = _C2BlockFactory::CreateGraphicBlock(std::move(allocation), std::move(poolData)); *block = _C2BlockFactory::CreateGraphicBlock(std::move(allocation), std::move(poolData));
if (*block == nullptr) { if (*block == nullptr) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment