Skip to content
Snippets Groups Projects
Commit 75a35169 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8598972 from 40521db6 to tm-d1-release

Change-Id: Ie5e9011d996ef8f95731e63c6548f209e80626f3
parents c161deb0 40521db6
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