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

C2VdaBqBlockPool: reflects C2BufferQueueBlockPoolData change. am: 42116ed3

parents e0a555a2 42116ed3
No related branches found
No related tags found
No related merge requests found
......@@ -562,11 +562,12 @@ c2_status_t C2VdaBqBlockPool::Impl::fetchGraphicBlock(
}
std::shared_ptr<C2SurfaceSyncMemory> syncMem;
// TODO: the |owner| argument should be set correctly.
std::shared_ptr<C2GraphicAllocation> allocation =
mTrackedGraphicBuffers.getRegisteredAllocation(uniqueId);
auto poolData = std::make_shared<C2BufferQueueBlockPoolData>(
slotBuffer->getGenerationNumber(), mProducerId, slot,
mProducer->getBase(), syncMem, 0);
slotBuffer->getGenerationNumber(), mProducerId, slot, std::make_shared<int>(0),
mProducer->getBase(), syncMem);
mTrackedGraphicBuffers.updatePoolData(slot, poolData);
*block = _C2BlockFactory::CreateGraphicBlock(std::move(allocation), std::move(poolData));
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