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

C2VdaBqBlockPool: reflects C2BufferQueueBlockPoolData change. am: 42116ed3...

C2VdaBqBlockPool: reflects C2BufferQueueBlockPoolData change. am: 42116ed3 am: 40521db6 am: c6442d53

Original change: https://googleplex-android-review.googlesource.com/c/platform/external/v4l2_codec2/+/18400302



Change-Id: I5a5961320c05ad65f8f1f73d180146d3b4ecd328
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 49556b58 c6442d53
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