Home | History | Annotate | Download | only in vndk

Lines Matching refs:shared_ptr

120     _C2Block1DImpl(const std::shared_ptr<C2LinearAllocation> &alloc,
121 const std::shared_ptr<_C2BlockPoolData> &poolData = nullptr,
133 std::shared_ptr<_C2BlockPoolData> poolData() const {
148 std::shared_ptr<C2LinearAllocation> getAllocation() const {
153 std::shared_ptr<C2LinearAllocation> mAllocation;
154 std::shared_ptr<_C2BlockPoolData> mPoolData;
206 C2Block1D::C2Block1D(std::shared_ptr<Impl> impl, const _C2LinearRangeAspect &range)
222 C2ReadView::C2ReadView(std::shared_ptr<Impl> impl, uint32_t offset, uint32_t size)
252 C2WriteView::C2WriteView(std::shared_ptr<Impl> impl)
270 C2ConstLinearBlock::C2ConstLinearBlock(std::shared_ptr<Impl> impl, const _C2LinearRangeAspect &range, C2Fence fence)
280 std::shared_ptr<ReadViewBuddy::Impl> rvi = std::shared_ptr<ReadViewBuddy::Impl>(
300 C2LinearBlock::C2LinearBlock(std::shared_ptr<Impl> impl, const _C2LinearRangeAspect &range)
310 std::shared_ptr<WriteViewBuddy::Impl> rvi = std::shared_ptr<WriteViewBuddy::Impl>(
327 const std::shared_ptr<C2Allocator> &allocator)
333 std::shared_ptr<C2LinearBlock> *block /* nonnull */) {
336 std::shared_ptr<C2LinearAllocation> alloc;
353 void getBufferPoolData(std::shared_ptr<BufferPoolData> *data) const {
357 C2PooledBlockPoolData(const std::shared_ptr<BufferPoolData> &data) : mData(data) {}
362 std::shared_ptr<BufferPoolData> mData;
366 const std::shared_ptr<const _C2BlockPoolData> &data,
367 std::shared_ptr<BufferPoolData> *bufferPoolData) {
369 const std::shared_ptr<const C2PooledBlockPoolData> poolData =
377 std::shared_ptr<C2LinearBlock> _C2BlockFactory::CreateLinearBlock(
378 const std::shared_ptr<C2LinearAllocation> &alloc,
379 const std::shared_ptr<_C2BlockPoolData> &data, size_t offset, size_t size) {
380 std::shared_ptr<C2Block1D::Impl> impl =
382 return std::shared_ptr<C2LinearBlock>(new C2LinearBlock(impl, *impl));
385 std::shared_ptr<_C2BlockPoolData> _C2BlockFactory::GetLinearBlockPoolData(
393 std::shared_ptr<C2LinearBlock> _C2BlockFactory::CreateLinearBlock(
398 std::shared_ptr<C2LinearAllocation> alloc;
402 std::shared_ptr<C2LinearBlock> block = _C2BlockFactory::CreateLinearBlock(alloc);
409 std::shared_ptr<C2LinearBlock> _C2BlockFactory::CreateLinearBlock(
410 const C2Handle *cHandle, const std::shared_ptr<BufferPoolData> &data) {
414 std::shared_ptr<C2LinearAllocation> alloc;
419 const std::shared_ptr<C2PooledBlockPoolData> poolData =
423 std::shared_ptr<C2LinearBlock> block =
438 _C2BufferPoolAllocator(const std::shared_ptr<C2Allocator> &allocator)
444 std::shared_ptr<BufferPoolAllocation> *alloc,
481 std::shared_ptr<C2LinearAllocation> *c2Allocation);
489 std::shared_ptr<C2GraphicAllocation> *c2Allocation);
518 const std::shared_ptr<C2Allocator> mAllocator;
522 LinearAllocationDtor(const std::shared_ptr<C2LinearAllocation> &alloc)
527 const std::shared_ptr<C2LinearAllocation> mAllocation;
531 GraphicAllocationDtor(const std::shared_ptr<C2GraphicAllocation> &alloc)
536 const std::shared_ptr<C2GraphicAllocation> mAllocation;
541 std::shared_ptr<BufferPoolAllocation> *alloc,
550 std::shared_ptr<C2LinearAllocation> c2Linear;
556 *alloc = std::shared_ptr<BufferPoolAllocation>(
569 std::shared_ptr<C2GraphicAllocation> c2Graphic;
578 *alloc = std::shared_ptr<BufferPoolAllocation>(
632 std::shared_ptr<C2LinearAllocation> *c2Allocation) {
638 std::shared_ptr<C2GraphicAllocation> *c2Allocation) {
644 Impl(const std::shared_ptr<C2Allocator> &allocator)
665 std::shared_ptr<C2LinearBlock> *block /* nonnull */) {
672 std::shared_ptr<BufferPoolData> bufferPoolData;
679 std::shared_ptr<C2LinearAllocation> alloc;
680 std::shared_ptr<C2PooledBlockPoolData> poolData =
701 std::shared_ptr<C2GraphicBlock> *block) {
708 std::shared_ptr<BufferPoolData> bufferPoolData;
715 std::shared_ptr<C2GraphicAllocation> alloc;
716 std::shared_ptr<C2PooledBlockPoolData> poolData =
744 const std::shared_ptr<_C2BufferPoolAllocator> mAllocator;
748 const std::shared_ptr<C2Allocator> &allocator, const local_id_t localId)
757 std::shared_ptr<C2LinearBlock> *block /* nonnull */) {
769 std::shared_ptr<C2GraphicBlock> *block) {
798 _C2Block2DImpl(const std::shared_ptr<C2GraphicAllocation> &alloc,
799 const std::shared_ptr<_C2BlockPoolData> &poolData = nullptr,
808 std::shared_ptr<_C2BlockPoolData> poolData() const {
823 std::shared_ptr<C2GraphicAllocation> getAllocation() const {
828 std::shared_ptr<C2GraphicAllocation> mAllocation;
829 std::shared_ptr<_C2BlockPoolData> mPoolData;
846 Mapped(const std::shared_ptr<_C2Block2DImpl> &impl, bool writable, C2Fence *fence __unused)
914 const std::shared_ptr<_C2Block2DImpl> mImpl;
928 std::shared_ptr<Mapped> map(bool writable, C2Fence *fence) {
930 std::shared_ptr<Mapped> existing = mMapped.lock();
932 existing = std::shared_ptr<Mapped>(new Mapped(shared_from_this(), writable, fence));
937 existing = std::shared_ptr<Mapped>(new Mapped(C2_CANNOT_DO));
954 std::shared_ptr<_C2MappingBlock2DImpl::Mapped> mapping)
960 std::shared_ptr<_C2MappingBlock2DImpl::Mapped> mapping() const { return mMapping; }
963 std::shared_ptr<_C2MappingBlock2DImpl::Mapped> mMapping;
983 C2Block2D::C2Block2D(std::shared_ptr<Impl> impl, const _C2PlanarSectionAspect &section)
1000 C2GraphicView::C2GraphicView(std::shared_ptr<Impl> impl, const _C2PlanarSectionAspect &section)
1032 std::shared_ptr<Impl> impl, const _C2PlanarSectionAspect &section, C2Fence fence)
1037 std::shared_ptr<_C2MappingBlock2DImpl::Mapped> mapping =
1039 std::shared_ptr<GraphicViewBuddy::Impl> gvi =
1040 std::shared_ptr<GraphicViewBuddy::Impl>(new GraphicViewBuddy::Impl(*mImpl, mapping));
1053 std::shared_ptr<Impl> impl, const _C2PlanarSectionAspect &section)
1058 std::shared_ptr<_C2MappingBlock2DImpl::Mapped> mapping =
1060 std::shared_ptr<GraphicViewBuddy::Impl> gvi =
1061 std::shared_ptr<GraphicViewBuddy::Impl>(new GraphicViewBuddy::Impl(*mImpl, mapping));
1074 const std::shared_ptr<C2Allocator> &allocator)
1082 std::shared_ptr<C2GraphicBlock> *block /* nonnull */) {
1085 std::shared_ptr<C2GraphicAllocation> alloc;
1096 std::shared_ptr<C2GraphicBlock> _C2BlockFactory::CreateGraphicBlock(
1097 const std::shared_ptr<C2GraphicAllocation> &alloc,
1098 const std::shared_ptr<_C2BlockPoolData> &data, const C2Rect &allottedCrop) {
1099 std::shared_ptr<C2Block2D::Impl> impl =
1101 return std::shared_ptr<C2GraphicBlock>(new C2GraphicBlock(impl, *impl));
1104 std::shared_ptr<_C2BlockPoolData> _C2BlockFactory::GetGraphicBlockPoolData(
1112 std::shared_ptr<C2GraphicBlock> _C2BlockFactory::CreateGraphicBlock(
1114 const std::shared_ptr<BufferPoolData> &data) {
1118 std::shared_ptr<C2GraphicAllocation> alloc;
1123 const std::shared_ptr<C2PooledBlockPoolData> poolData =
1127 std::shared_ptr<C2GraphicBlock> block =
1215 std::vector<std::shared_ptr<const C2Info>> info() const {
1216 std::vector<std::shared_ptr<const C2Info>> result(mInfos.size());
1223 c2_status_t setInfo(const std::shared_ptr<C2Info> &info) {
1234 std::shared_ptr<const C2Info> getInfo(C2Param::Type index) const {
1242 std::shared_ptr<C2Info> removeInfo(C2Param::Type index) {
1247 std::shared_ptr<C2Info> ret = it->second;
1255 std::map<C2Param::CoreIndex, std::shared_ptr<C2Info>> mInfos;
1275 const std::vector<std::shared_ptr<const C2Info>> C2Buffer::info() const {
1279 c2_status_t C2Buffer::setInfo(const std::shared_ptr<C2Info> &info) {
1287 std::shared_ptr<const C2Info> C2Buffer::getInfo(C2Param::Type index) const {
1291 std::shared_ptr<C2Info> C2Buffer::removeInfo(C2Param::Type index) {
1296 std::shared_ptr<C2Buffer> C2Buffer::CreateLinearBuffer(const C2ConstLinearBlock &block) {
1297 return std::shared_ptr<C2Buffer>(new C2Buffer({ block }));
1301 std::shared_ptr<C2Buffer> C2Buffer::CreateGraphicBuffer(const C2ConstGraphicBlock &block) {
1302 return std::shared_ptr<C2Buffer>(new C2Buffer({ block }));