diff options
author | Yuichiro Hanada <yhanada@google.com> | 2022-05-16 06:12:53 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-05-16 06:12:53 +0000 |
commit | c6442d5357ce70d70a826248d6c7aa0d6dc34d15 (patch) | |
tree | f71df2bf8aebba62f8c958d7aa157df8332045a2 | |
parent | 49556b587b0536c98bee23cc83a9e67484c451f4 (diff) | |
parent | 40521db6e6615db996ba2d5e8ad8c2d1ab0d5b43 (diff) | |
download | v4l2_codec2-c6442d5357ce70d70a826248d6c7aa0d6dc34d15.tar.gz |
C2VdaBqBlockPool: reflects C2BufferQueueBlockPoolData change. am: 42116ed33f am: 40521db6e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/v4l2_codec2/+/18400302
Change-Id: Ib4d8e8796f706b81998addcd09a710763ae47372
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-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) { |