• Home
  • Raw
  • Download

Lines Matching refs:alloc

120     _C2Block1DImpl(const std::shared_ptr<C2LinearAllocation> &alloc,  in _C2Block1DImpl()  argument
123 : _C2LinearRangeAspect(alloc.get(), offset, size), in _C2Block1DImpl()
124 mAllocation(alloc), in _C2Block1DImpl()
336 std::shared_ptr<C2LinearAllocation> alloc; in fetchLinearBlock() local
337 c2_status_t err = mAllocator->newLinearAllocation(capacity, usage, &alloc); in fetchLinearBlock()
342 *block = _C2BlockFactory::CreateLinearBlock(alloc); in fetchLinearBlock()
378 const std::shared_ptr<C2LinearAllocation> &alloc, in CreateLinearBlock() argument
381 std::make_shared<C2Block1D::Impl>(alloc, data, offset, size); in CreateLinearBlock()
398 std::shared_ptr<C2LinearAllocation> alloc; in CreateLinearBlock() local
400 c2_status_t err = sAllocator->priorLinearAllocation(handle, &alloc); in CreateLinearBlock()
402 std::shared_ptr<C2LinearBlock> block = _C2BlockFactory::CreateLinearBlock(alloc); in CreateLinearBlock()
414 std::shared_ptr<C2LinearAllocation> alloc; in CreateLinearBlock() local
418 c2_status_t err = sAllocator->priorLinearAllocation(handle, &alloc); in CreateLinearBlock()
424 _C2BlockFactory::CreateLinearBlock(alloc, poolData); in CreateLinearBlock()
444 std::shared_ptr<BufferPoolAllocation> *alloc,
522 LinearAllocationDtor(const std::shared_ptr<C2LinearAllocation> &alloc) in LinearAllocationDtor()
523 : mAllocation(alloc) {} in LinearAllocationDtor()
531 GraphicAllocationDtor(const std::shared_ptr<C2GraphicAllocation> &alloc) in GraphicAllocationDtor()
532 : mAllocation(alloc) {} in GraphicAllocationDtor()
541 std::shared_ptr<BufferPoolAllocation> *alloc, in allocate() argument
556 *alloc = std::shared_ptr<BufferPoolAllocation>( in allocate()
558 if (*alloc) { in allocate()
578 *alloc = std::shared_ptr<BufferPoolAllocation>( in allocate()
580 if (*alloc) { in allocate()
679 std::shared_ptr<C2LinearAllocation> alloc; in fetchLinearBlock() local
682 c2_status_t err = mAllocator->priorLinearAllocation(handle, &alloc); in fetchLinearBlock()
683 if (err == C2_OK && poolData && alloc) { in fetchLinearBlock()
684 *block = _C2BlockFactory::CreateLinearBlock(alloc, poolData, 0, capacity); in fetchLinearBlock()
715 std::shared_ptr<C2GraphicAllocation> alloc; in fetchGraphicBlock() local
719 handle, &alloc); in fetchGraphicBlock()
720 if (err == C2_OK && poolData && alloc) { in fetchGraphicBlock()
722 alloc, poolData, C2Rect(width, height)); in fetchGraphicBlock()
798 _C2Block2DImpl(const std::shared_ptr<C2GraphicAllocation> &alloc, in _C2Block2DImpl() argument
801 : _C2PlanarSectionAspect(alloc.get(), allottedCrop), in _C2Block2DImpl()
802 mAllocation(alloc), in _C2Block2DImpl()
1085 std::shared_ptr<C2GraphicAllocation> alloc; in fetchGraphicBlock() local
1086 c2_status_t err = mAllocator->newGraphicAllocation(width, height, format, usage, &alloc); in fetchGraphicBlock()
1091 *block = _C2BlockFactory::CreateGraphicBlock(alloc); in fetchGraphicBlock()
1097 const std::shared_ptr<C2GraphicAllocation> &alloc, in CreateGraphicBlock() argument
1100 std::make_shared<C2Block2D::Impl>(alloc, data, allottedCrop); in CreateGraphicBlock()
1118 std::shared_ptr<C2GraphicAllocation> alloc; in CreateGraphicBlock() local
1122 c2_status_t err = sAllocator->priorGraphicAllocation(handle, &alloc); in CreateGraphicBlock()
1128 _C2BlockFactory::CreateGraphicBlock(alloc, poolData); in CreateGraphicBlock()