diff options
author | Yuichiro Hanada <yhanada@google.com> | 2022-05-16 02:11:52 +0000 |
---|---|---|
committer | Yuichiro Hanada <yhanada@google.com> | 2022-05-16 02:19:21 +0000 |
commit | 42116ed33f49bc473512bef2e81f2d135951783b (patch) | |
tree | f71df2bf8aebba62f8c958d7aa157df8332045a2 | |
parent | 49556b587b0536c98bee23cc83a9e67484c451f4 (diff) | |
download | v4l2_codec2-42116ed33f49bc473512bef2e81f2d135951783b.tar.gz |
C2VdaBqBlockPool: reflects C2BufferQueueBlockPoolData change.
ag/18183905 changes the constructor arguments of C2BufferQueueBlockPoolData.
Bug: 232711062
Test: m
Change-Id: I63a9f9b1c7d8368af4c80777a9f4dcba4b581df0
-rw-r--r-- | plugin_store/C2VdaBqBlockPool.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin_store/C2VdaBqBlockPool.cpp b/plugin_store/C2VdaBqBlockPool.cpp index 8271d81..d53f4a0 100644 --- a/plugin_store/C2VdaBqBlockPool.cpp +++ b/plugin_store/C2VdaBqBlockPool.cpp @@ -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) { |