Lines Matching refs:alloc

123     _C2Block1DImpl(const std::shared_ptr<C2LinearAllocation> &alloc,  in _C2Block1DImpl()  argument
126 : _C2LinearRangeAspect(alloc.get(), offset, size), in _C2Block1DImpl()
127 mAllocation(alloc), in _C2Block1DImpl()
339 std::shared_ptr<C2LinearAllocation> alloc; in fetchLinearBlock() local
340 c2_status_t err = mAllocator->newLinearAllocation(capacity, usage, &alloc); in fetchLinearBlock()
345 *block = _C2BlockFactory::CreateLinearBlock(alloc); in fetchLinearBlock()
381 const std::shared_ptr<C2LinearAllocation> &alloc, in CreateLinearBlock() argument
384 std::make_shared<C2Block1D::Impl>(alloc, data, offset, size); in CreateLinearBlock()
420 std::shared_ptr<C2LinearAllocation> alloc; in CreateLinearBlock() local
422 c2_status_t err = sAllocator->priorLinearAllocation(handle, &alloc); in CreateLinearBlock()
424 std::shared_ptr<C2LinearBlock> block = _C2BlockFactory::CreateLinearBlock(alloc); in CreateLinearBlock()
455 std::shared_ptr<C2LinearAllocation> alloc; in CreateLinearBlock() local
457 c2_status_t err = sAllocator->priorLinearAllocation(cHandle, &alloc); in CreateLinearBlock()
463 _C2BlockFactory::CreateLinearBlock(alloc, poolData); in CreateLinearBlock()
482 std::shared_ptr<BufferPoolAllocation> *alloc,
560 LinearAllocationDtor(const std::shared_ptr<C2LinearAllocation> &alloc) in LinearAllocationDtor()
561 : mAllocation(alloc) {} in LinearAllocationDtor()
569 GraphicAllocationDtor(const std::shared_ptr<C2GraphicAllocation> &alloc) in GraphicAllocationDtor()
570 : mAllocation(alloc) {} in GraphicAllocationDtor()
579 std::shared_ptr<BufferPoolAllocation> *alloc, in allocate() argument
594 *alloc = std::shared_ptr<BufferPoolAllocation>( in allocate()
596 if (*alloc) { in allocate()
616 *alloc = std::shared_ptr<BufferPoolAllocation>( in allocate()
618 if (*alloc) { in allocate()
715 std::shared_ptr<C2LinearAllocation> alloc; in fetchLinearBlock() local
718 c2_status_t err = mAllocator->priorLinearAllocation(cHandle, &alloc); in fetchLinearBlock()
719 if (err == C2_OK && poolData && alloc) { in fetchLinearBlock()
720 *block = _C2BlockFactory::CreateLinearBlock(alloc, poolData, 0, capacity); in fetchLinearBlock()
748 std::shared_ptr<C2GraphicAllocation> alloc; in fetchGraphicBlock() local
752 cHandle, &alloc); in fetchGraphicBlock()
753 if (err == C2_OK && poolData && alloc) { in fetchGraphicBlock()
755 alloc, poolData, C2Rect(width, height)); in fetchGraphicBlock()
830 _C2Block2DImpl(const std::shared_ptr<C2GraphicAllocation> &alloc, in _C2Block2DImpl() argument
833 : _C2PlanarSectionAspect(alloc.get(), allottedCrop), in _C2Block2DImpl()
834 mAllocation(alloc), in _C2Block2DImpl()
1117 std::shared_ptr<C2GraphicAllocation> alloc; in fetchGraphicBlock() local
1118 c2_status_t err = mAllocator->newGraphicAllocation(width, height, format, usage, &alloc); in fetchGraphicBlock()
1123 *block = _C2BlockFactory::CreateGraphicBlock(alloc); in fetchGraphicBlock()
1129 const std::shared_ptr<C2GraphicAllocation> &alloc, in CreateGraphicBlock() argument
1132 std::make_shared<C2Block2D::Impl>(alloc, data, allottedCrop); in CreateGraphicBlock()
1150 std::shared_ptr<C2GraphicAllocation> alloc; in CreateGraphicBlock() local
1152 c2_status_t err = sAllocator->priorGraphicAllocation(cHandle, &alloc); in CreateGraphicBlock()
1158 _C2BlockFactory::CreateGraphicBlock(alloc, poolData); in CreateGraphicBlock()