• Home
  • Raw
  • Download

Lines Matching refs:alloc

124     _C2Block1DImpl(const std::shared_ptr<C2LinearAllocation> &alloc,  in _C2Block1DImpl()  argument
127 : _C2LinearRangeAspect(alloc.get(), offset, size), in _C2Block1DImpl()
128 mAllocation(alloc), in _C2Block1DImpl()
340 std::shared_ptr<C2LinearAllocation> alloc; in fetchLinearBlock() local
341 c2_status_t err = mAllocator->newLinearAllocation(capacity, usage, &alloc); in fetchLinearBlock()
346 *block = _C2BlockFactory::CreateLinearBlock(alloc); in fetchLinearBlock()
382 const std::shared_ptr<C2LinearAllocation> &alloc, in CreateLinearBlock() argument
385 std::make_shared<C2Block1D::Impl>(alloc, data, offset, size); in CreateLinearBlock()
413 std::shared_ptr<C2LinearAllocation> alloc; in CreateLinearBlock() local
415 c2_status_t err = sAllocator->priorLinearAllocation(handle, &alloc); in CreateLinearBlock()
417 std::shared_ptr<C2LinearBlock> block = _C2BlockFactory::CreateLinearBlock(alloc); in CreateLinearBlock()
440 std::shared_ptr<C2LinearAllocation> alloc; in CreateLinearBlock() local
442 c2_status_t err = sAllocator->priorLinearAllocation(cHandle, &alloc); in CreateLinearBlock()
448 _C2BlockFactory::CreateLinearBlock(alloc, poolData); in CreateLinearBlock()
467 std::shared_ptr<BufferPoolAllocation> *alloc,
545 LinearAllocationDtor(const std::shared_ptr<C2LinearAllocation> &alloc) in LinearAllocationDtor()
546 : mAllocation(alloc) {} in LinearAllocationDtor()
554 GraphicAllocationDtor(const std::shared_ptr<C2GraphicAllocation> &alloc) in GraphicAllocationDtor()
555 : mAllocation(alloc) {} in GraphicAllocationDtor()
564 std::shared_ptr<BufferPoolAllocation> *alloc, in allocate() argument
579 *alloc = std::shared_ptr<BufferPoolAllocation>( in allocate()
581 if (*alloc) { in allocate()
601 *alloc = std::shared_ptr<BufferPoolAllocation>( in allocate()
603 if (*alloc) { in allocate()
700 std::shared_ptr<C2LinearAllocation> alloc; in fetchLinearBlock() local
703 c2_status_t err = mAllocator->priorLinearAllocation(cHandle, &alloc); in fetchLinearBlock()
704 if (err == C2_OK && poolData && alloc) { in fetchLinearBlock()
705 *block = _C2BlockFactory::CreateLinearBlock(alloc, poolData, 0, capacity); in fetchLinearBlock()
733 std::shared_ptr<C2GraphicAllocation> alloc; in fetchGraphicBlock() local
737 cHandle, &alloc); in fetchGraphicBlock()
738 if (err == C2_OK && poolData && alloc) { in fetchGraphicBlock()
740 alloc, poolData, C2Rect(width, height)); in fetchGraphicBlock()
815 _C2Block2DImpl(const std::shared_ptr<C2GraphicAllocation> &alloc, in _C2Block2DImpl() argument
818 : _C2PlanarSectionAspect(alloc.get(), allottedCrop), in _C2Block2DImpl()
819 mAllocation(alloc), in _C2Block2DImpl()
1102 std::shared_ptr<C2GraphicAllocation> alloc; in fetchGraphicBlock() local
1103 c2_status_t err = mAllocator->newGraphicAllocation(width, height, format, usage, &alloc); in fetchGraphicBlock()
1108 *block = _C2BlockFactory::CreateGraphicBlock(alloc); in fetchGraphicBlock()
1114 const std::shared_ptr<C2GraphicAllocation> &alloc, in CreateGraphicBlock() argument
1117 std::make_shared<C2Block2D::Impl>(alloc, data, allottedCrop); in CreateGraphicBlock()
1135 std::shared_ptr<C2GraphicAllocation> alloc; in CreateGraphicBlock() local
1137 c2_status_t err = sAllocator->priorGraphicAllocation(cHandle, &alloc); in CreateGraphicBlock()
1143 _C2BlockFactory::CreateGraphicBlock(alloc, poolData); in CreateGraphicBlock()