aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuichiro Hanada <yhanada@google.com>2022-05-16 05:47:42 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-05-16 05:47:42 +0000
commit40521db6e6615db996ba2d5e8ad8c2d1ab0d5b43 (patch)
treef71df2bf8aebba62f8c958d7aa157df8332045a2
parent49556b587b0536c98bee23cc83a9e67484c451f4 (diff)
parent42116ed33f49bc473512bef2e81f2d135951783b (diff)
downloadv4l2_codec2-40521db6e6615db996ba2d5e8ad8c2d1ab0d5b43.tar.gz
C2VdaBqBlockPool: reflects C2BufferQueueBlockPoolData change. am: 42116ed33f
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/v4l2_codec2/+/18400302 Change-Id: Iedb8d40592bfb29a11d7c96390d247bfb50d1829 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--plugin_store/C2VdaBqBlockPool.cpp5
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) {