diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-16 18:35:58 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-16 18:35:58 +0000 |
commit | 8ba9d707da3f5fe78c3a0fa74e85096d22fc3b81 (patch) | |
tree | f71df2bf8aebba62f8c958d7aa157df8332045a2 | |
parent | 5449cfc5d56195cdf847e7477e313d0e24e4ba09 (diff) | |
parent | 42116ed33f49bc473512bef2e81f2d135951783b (diff) | |
download | v4l2_codec2-8ba9d707da3f5fe78c3a0fa74e85096d22fc3b81.tar.gz |
Snap for 8598433 from 42116ed33f49bc473512bef2e81f2d135951783b to tm-frc-neuralnetworks-release
Change-Id: Ia4b6b247981289b50d3ce7767e6f475746860714
-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) { |