Lines Matching refs:shared_ptr

125         std::shared_ptr<C2LinearBlock> *block /* nonnull */,  in fetchLinearBlock()
137 std::shared_ptr<C2GraphicBlock> *block /* nonnull */, in fetchGraphicBlock()
156 _C2Block1DImpl(const std::shared_ptr<C2LinearAllocation> &alloc, in _C2Block1DImpl()
157 const std::shared_ptr<_C2BlockPoolData> &poolData = nullptr, in _C2Block1DImpl()
169 std::shared_ptr<_C2BlockPoolData> poolData() const { in poolData()
184 std::shared_ptr<C2LinearAllocation> getAllocation() const { in getAllocation()
189 std::shared_ptr<C2LinearAllocation> mAllocation;
190 std::shared_ptr<_C2BlockPoolData> mPoolData;
242 C2Block1D::C2Block1D(std::shared_ptr<Impl> impl, const _C2LinearRangeAspect &range) in C2Block1D()
258 C2ReadView::C2ReadView(std::shared_ptr<Impl> impl, uint32_t offset, uint32_t size) in C2ReadView()
288 C2WriteView::C2WriteView(std::shared_ptr<Impl> impl) in C2WriteView()
306 C2ConstLinearBlock::C2ConstLinearBlock(std::shared_ptr<Impl> impl, const _C2LinearRangeAspect &rang… in C2ConstLinearBlock()
316 std::shared_ptr<ReadViewBuddy::Impl> rvi = std::shared_ptr<ReadViewBuddy::Impl>( in map()
336 C2LinearBlock::C2LinearBlock(std::shared_ptr<Impl> impl, const _C2LinearRangeAspect &range) in C2LinearBlock()
346 std::shared_ptr<WriteViewBuddy::Impl> rvi = std::shared_ptr<WriteViewBuddy::Impl>( in map()
363 const std::shared_ptr<C2Allocator> &allocator) in C2BasicLinearBlockPool()
369 std::shared_ptr<C2LinearBlock> *block /* nonnull */) { in fetchLinearBlock()
372 std::shared_ptr<C2LinearAllocation> alloc; in fetchLinearBlock()
389 void getBufferPoolData(std::shared_ptr<bufferpool::BufferPoolData> *data) const { in getBufferPoolData()
393 C2PooledBlockPoolData(const std::shared_ptr<bufferpool::BufferPoolData> &data) : mData(data) {} in C2PooledBlockPoolData()
398 std::shared_ptr<bufferpool::BufferPoolData> mData;
402 const std::shared_ptr<const _C2BlockPoolData> &data, in GetBufferPoolData()
403 std::shared_ptr<bufferpool::BufferPoolData> *bufferPoolData) { in GetBufferPoolData()
405 const std::shared_ptr<const C2PooledBlockPoolData> poolData = in GetBufferPoolData()
419 void getBufferPoolData(std::shared_ptr<bufferpool2::BufferPoolData> *data) const { in getBufferPoolData()
423 C2PooledBlockPoolData2(const std::shared_ptr<bufferpool2::BufferPoolData> &data) in C2PooledBlockPoolData2()
429 std::shared_ptr<bufferpool2::BufferPoolData> mData;
433 const std::shared_ptr<const _C2BlockPoolData> &data, in GetBufferPoolData()
434 std::shared_ptr<bufferpool2::BufferPoolData> *bufferPoolData) { in GetBufferPoolData()
436 const std::shared_ptr<const C2PooledBlockPoolData2> poolData = in GetBufferPoolData()
444 std::shared_ptr<C2LinearBlock> _C2BlockFactory::CreateLinearBlock( in CreateLinearBlock()
445 const std::shared_ptr<C2LinearAllocation> &alloc, in CreateLinearBlock()
446 const std::shared_ptr<_C2BlockPoolData> &data, size_t offset, size_t size) { in CreateLinearBlock()
447 std::shared_ptr<C2Block1D::Impl> impl = in CreateLinearBlock()
449 return std::shared_ptr<C2LinearBlock>(new C2LinearBlock(impl, *impl)); in CreateLinearBlock()
452 std::shared_ptr<_C2BlockPoolData> _C2BlockFactory::GetLinearBlockPoolData( in GetLinearBlockPoolData()
460 std::shared_ptr<C2LinearBlock> _C2BlockFactory::CreateLinearBlock( in CreateLinearBlock()
463 static std::shared_ptr<C2Allocator> sAllocator = []{ in CreateLinearBlock()
464 std::shared_ptr<C2Allocator> allocator; in CreateLinearBlock()
465 … std::shared_ptr<C2AllocatorStore> allocatorStore = android::GetCodec2PlatformAllocatorStore(); in CreateLinearBlock()
476 std::shared_ptr<C2LinearAllocation> alloc; in CreateLinearBlock()
480 std::shared_ptr<C2LinearBlock> block = _C2BlockFactory::CreateLinearBlock(alloc); in CreateLinearBlock()
487 std::shared_ptr<C2LinearBlock> _C2BlockFactory::CreateLinearBlock( in CreateLinearBlock()
488 const C2Handle *cHandle, const std::shared_ptr<bufferpool::BufferPoolData> &data) { in CreateLinearBlock()
490 static std::shared_ptr<C2Allocator> sAllocator = []{ in CreateLinearBlock()
491 std::shared_ptr<C2Allocator> allocator; in CreateLinearBlock()
492 … std::shared_ptr<C2AllocatorStore> allocatorStore = android::GetCodec2PlatformAllocatorStore(); in CreateLinearBlock()
503 std::shared_ptr<C2LinearAllocation> alloc; in CreateLinearBlock()
506 const std::shared_ptr<C2PooledBlockPoolData> poolData = in CreateLinearBlock()
510 std::shared_ptr<C2LinearBlock> block = in CreateLinearBlock()
518 std::shared_ptr<C2LinearBlock> _C2BlockFactory::CreateLinearBlock( in CreateLinearBlock()
519 const C2Handle *cHandle, const std::shared_ptr<bufferpool2::BufferPoolData> &data) { in CreateLinearBlock()
521 static std::shared_ptr<C2Allocator> sAllocator = []{ in CreateLinearBlock()
522 std::shared_ptr<C2Allocator> allocator; in CreateLinearBlock()
523 std::shared_ptr<C2AllocatorStore> allocatorStore = in CreateLinearBlock()
535 std::shared_ptr<C2LinearAllocation> alloc; in CreateLinearBlock()
538 const std::shared_ptr<C2PooledBlockPoolData2> poolData = in CreateLinearBlock()
542 std::shared_ptr<C2LinearBlock> block = in CreateLinearBlock()
556 _C2BufferPoolAllocator(const std::shared_ptr<C2Allocator> &allocator) in _C2BufferPoolAllocator()
562 std::shared_ptr<bufferpool_impl::BufferPoolAllocation> *alloc,
599 std::shared_ptr<C2LinearAllocation> *c2Allocation);
607 std::shared_ptr<C2GraphicAllocation> *c2Allocation);
636 const std::shared_ptr<C2Allocator> mAllocator;
640 LinearAllocationDtor(const std::shared_ptr<C2LinearAllocation> &alloc) in LinearAllocationDtor()
645 const std::shared_ptr<C2LinearAllocation> mAllocation;
649 GraphicAllocationDtor(const std::shared_ptr<C2GraphicAllocation> &alloc) in GraphicAllocationDtor()
654 const std::shared_ptr<C2GraphicAllocation> mAllocation;
659 std::shared_ptr<bufferpool_impl::BufferPoolAllocation> *alloc, in allocate()
668 std::shared_ptr<C2LinearAllocation> c2Linear; in allocate()
675 *alloc = std::shared_ptr<bufferpool_impl::BufferPoolAllocation>( in allocate()
688 std::shared_ptr<C2GraphicAllocation> c2Graphic; in allocate()
698 *alloc = std::shared_ptr<bufferpool_impl::BufferPoolAllocation>( in allocate()
752 std::shared_ptr<C2LinearAllocation> *c2Allocation) { in priorLinearAllocation()
758 std::shared_ptr<C2GraphicAllocation> *c2Allocation) { in priorGraphicAllocation()
764 Impl(const std::shared_ptr<C2Allocator> &allocator) in Impl()
785 std::shared_ptr<C2LinearBlock> *block /* nonnull */) { in fetchLinearBlock()
792 std::shared_ptr<bufferpool::BufferPoolData> bufferPoolData; in fetchLinearBlock()
797 std::shared_ptr<C2LinearAllocation> alloc; in fetchLinearBlock()
798 std::shared_ptr<C2PooledBlockPoolData> poolData = in fetchLinearBlock()
818 std::shared_ptr<C2GraphicBlock> *block) { in fetchGraphicBlock()
825 std::shared_ptr<bufferpool::BufferPoolData> bufferPoolData; in fetchGraphicBlock()
830 std::shared_ptr<C2GraphicAllocation> alloc; in fetchGraphicBlock()
831 std::shared_ptr<C2PooledBlockPoolData> poolData = in fetchGraphicBlock()
858 const std::shared_ptr<_C2BufferPoolAllocator> mAllocator;
867 _C2BufferPoolAllocator2(const std::shared_ptr<C2Allocator> &allocator) in _C2BufferPoolAllocator2()
873 std::shared_ptr<bufferpool2_impl::BufferPoolAllocation> *alloc,
910 std::shared_ptr<C2LinearAllocation> *c2Allocation);
918 std::shared_ptr<C2GraphicAllocation> *c2Allocation);
947 const std::shared_ptr<C2Allocator> mAllocator;
951 LinearAllocationDtor2(const std::shared_ptr<C2LinearAllocation> &alloc) in LinearAllocationDtor2()
956 const std::shared_ptr<C2LinearAllocation> mAllocation;
960 GraphicAllocationDtor2(const std::shared_ptr<C2GraphicAllocation> &alloc) in GraphicAllocationDtor2()
965 const std::shared_ptr<C2GraphicAllocation> mAllocation;
970 std::shared_ptr<bufferpool2_impl::BufferPoolAllocation> *alloc, in allocate()
979 std::shared_ptr<C2LinearAllocation> c2Linear; in allocate()
986 *alloc = std::shared_ptr<bufferpool2_impl::BufferPoolAllocation>( in allocate()
999 std::shared_ptr<C2GraphicAllocation> c2Graphic; in allocate()
1009 *alloc = std::shared_ptr<bufferpool2_impl::BufferPoolAllocation>( in allocate()
1063 std::shared_ptr<C2LinearAllocation> *c2Allocation) { in priorLinearAllocation()
1069 std::shared_ptr<C2GraphicAllocation> *c2Allocation) { in priorGraphicAllocation()
1075 Impl2(const std::shared_ptr<C2Allocator> &allocator) in Impl2()
1096 std::shared_ptr<C2LinearBlock> *block /* nonnull */) { in fetchLinearBlock()
1103 std::shared_ptr<bufferpool2::BufferPoolData> bufferPoolData; in fetchLinearBlock()
1108 std::shared_ptr<C2LinearAllocation> alloc; in fetchLinearBlock()
1109 std::shared_ptr<C2PooledBlockPoolData2> poolData = in fetchLinearBlock()
1129 std::shared_ptr<C2GraphicBlock> *block) { in fetchGraphicBlock()
1136 std::shared_ptr<bufferpool2::BufferPoolData> bufferPoolData; in fetchGraphicBlock()
1141 std::shared_ptr<C2GraphicAllocation> alloc; in fetchGraphicBlock()
1142 std::shared_ptr<C2PooledBlockPoolData2> poolData = in fetchGraphicBlock()
1167 const std::shared_ptr<bufferpool2_impl::ClientManager> mBufferPoolManager;
1169 const std::shared_ptr<_C2BufferPoolAllocator2> mAllocator;
1173 const std::shared_ptr<C2Allocator> &allocator, in C2PooledBlockPool()
1191 std::shared_ptr<C2LinearBlock> *block /* nonnull */) { in fetchLinearBlock()
1207 std::shared_ptr<C2GraphicBlock> *block) { in fetchGraphicBlock()
1243 _C2Block2DImpl(const std::shared_ptr<C2GraphicAllocation> &alloc, in _C2Block2DImpl()
1244 const std::shared_ptr<_C2BlockPoolData> &poolData = nullptr, in _C2Block2DImpl()
1253 std::shared_ptr<_C2BlockPoolData> poolData() const { in poolData()
1268 std::shared_ptr<C2GraphicAllocation> getAllocation() const { in getAllocation()
1273 std::shared_ptr<C2GraphicAllocation> mAllocation;
1274 std::shared_ptr<_C2BlockPoolData> mPoolData;
1291 Mapped(const std::shared_ptr<_C2Block2DImpl> &impl, bool writable, C2Fence *fence __unused) in Mapped()
1359 const std::shared_ptr<_C2Block2DImpl> mImpl;
1373 std::shared_ptr<Mapped> map(bool writable, C2Fence *fence) { in map()
1375 std::shared_ptr<Mapped> existing = mMapped.lock(); in map()
1377 existing = std::shared_ptr<Mapped>(new Mapped(shared_from_this(), writable, fence)); in map()
1382 existing = std::shared_ptr<Mapped>(new Mapped(C2_CANNOT_DO)); in map()
1399 std::shared_ptr<_C2MappingBlock2DImpl::Mapped> mapping) in _C2MappedBlock2DImpl()
1405 std::shared_ptr<_C2MappingBlock2DImpl::Mapped> mapping() const { return mMapping; } in mapping()
1408 std::shared_ptr<_C2MappingBlock2DImpl::Mapped> mMapping;
1428 C2Block2D::C2Block2D(std::shared_ptr<Impl> impl, const _C2PlanarSectionAspect &section) in C2Block2D()
1445 C2GraphicView::C2GraphicView(std::shared_ptr<Impl> impl, const _C2PlanarSectionAspect &section) in C2GraphicView()
1477 std::shared_ptr<Impl> impl, const _C2PlanarSectionAspect &section, C2Fence fence) in C2ConstGraphicBlock()
1482 std::shared_ptr<_C2MappingBlock2DImpl::Mapped> mapping = in map()
1484 std::shared_ptr<GraphicViewBuddy::Impl> gvi = in map()
1485 std::shared_ptr<GraphicViewBuddy::Impl>(new GraphicViewBuddy::Impl(*mImpl, mapping)); in map()
1498 std::shared_ptr<Impl> impl, const _C2PlanarSectionAspect &section) in C2GraphicBlock()
1503 std::shared_ptr<_C2MappingBlock2DImpl::Mapped> mapping = in map()
1505 std::shared_ptr<GraphicViewBuddy::Impl> gvi = in map()
1506 std::shared_ptr<GraphicViewBuddy::Impl>(new GraphicViewBuddy::Impl(*mImpl, mapping)); in map()
1519 const std::shared_ptr<C2Allocator> &allocator) in C2BasicGraphicBlockPool()
1527 std::shared_ptr<C2GraphicBlock> *block /* nonnull */) { in fetchGraphicBlock()
1530 std::shared_ptr<C2GraphicAllocation> alloc; in fetchGraphicBlock()
1541 std::shared_ptr<C2GraphicBlock> _C2BlockFactory::CreateGraphicBlock( in CreateGraphicBlock()
1542 const std::shared_ptr<C2GraphicAllocation> &alloc, in CreateGraphicBlock()
1543 const std::shared_ptr<_C2BlockPoolData> &data, const C2Rect &allottedCrop) { in CreateGraphicBlock()
1544 std::shared_ptr<C2Block2D::Impl> impl = in CreateGraphicBlock()
1546 return std::shared_ptr<C2GraphicBlock>(new C2GraphicBlock(impl, *impl)); in CreateGraphicBlock()
1549 std::shared_ptr<_C2BlockPoolData> _C2BlockFactory::GetGraphicBlockPoolData( in GetGraphicBlockPoolData()
1557 std::shared_ptr<C2GraphicBlock> _C2BlockFactory::CreateGraphicBlock( in CreateGraphicBlock()
1559 const std::shared_ptr<bufferpool::BufferPoolData> &data) { in CreateGraphicBlock()
1563 std::shared_ptr<C2GraphicAllocation> alloc; in CreateGraphicBlock()
1566 const std::shared_ptr<C2PooledBlockPoolData> poolData = in CreateGraphicBlock()
1570 std::shared_ptr<C2GraphicBlock> block = in CreateGraphicBlock()
1578 std::shared_ptr<C2GraphicBlock> _C2BlockFactory::CreateGraphicBlock( in CreateGraphicBlock()
1580 const std::shared_ptr<bufferpool2::BufferPoolData> &data) { in CreateGraphicBlock()
1584 std::shared_ptr<C2GraphicAllocation> alloc; in CreateGraphicBlock()
1587 const std::shared_ptr<C2PooledBlockPoolData2> poolData = in CreateGraphicBlock()
1591 std::shared_ptr<C2GraphicBlock> block = in CreateGraphicBlock()
1707 std::vector<std::shared_ptr<const C2Info>> info() const { in info()
1708 std::vector<std::shared_ptr<const C2Info>> result(mInfos.size()); in info()
1715 c2_status_t setInfo(const std::shared_ptr<C2Info> &info) { in setInfo()
1726 std::shared_ptr<const C2Info> getInfo(C2Param::Type index) const { in getInfo()
1734 std::shared_ptr<C2Info> removeInfo(C2Param::Type index) { in removeInfo()
1739 std::shared_ptr<C2Info> ret = it->second; in removeInfo()
1747 std::map<C2Param::CoreIndex, std::shared_ptr<C2Info>> mInfos;
1767 const std::vector<std::shared_ptr<const C2Info>> C2Buffer::info() const { in info()
1771 c2_status_t C2Buffer::setInfo(const std::shared_ptr<C2Info> &info) { in setInfo()
1779 std::shared_ptr<const C2Info> C2Buffer::getInfo(C2Param::Type index) const { in getInfo()
1783 std::shared_ptr<C2Info> C2Buffer::removeInfo(C2Param::Type index) { in removeInfo()
1788 std::shared_ptr<C2Buffer> C2Buffer::CreateLinearBuffer(const C2ConstLinearBlock &block) { in CreateLinearBuffer()
1789 return std::shared_ptr<C2Buffer>(new C2Buffer({ block })); in CreateLinearBuffer()
1793 std::shared_ptr<C2Buffer> C2Buffer::CreateGraphicBuffer(const C2ConstGraphicBlock &block) { in CreateGraphicBuffer()
1794 return std::shared_ptr<C2Buffer>(new C2Buffer({ block })); in CreateGraphicBuffer()