Lines Matching refs:sAllocator
463 static std::shared_ptr<C2Allocator> sAllocator = []{ in CreateLinearBlock() local
471 if (sAllocator == nullptr) in CreateLinearBlock()
474 bool isValidHandle = sAllocator->checkHandle(handle); in CreateLinearBlock()
478 c2_status_t err = sAllocator->priorLinearAllocation(handle, &alloc); in CreateLinearBlock()
490 static std::shared_ptr<C2Allocator> sAllocator = []{ in CreateLinearBlock() local
498 if (sAllocator == nullptr) in CreateLinearBlock()
501 bool isValidHandle = sAllocator->checkHandle(cHandle); in CreateLinearBlock()
505 c2_status_t err = sAllocator->priorLinearAllocation(cHandle, &alloc); in CreateLinearBlock()
521 static std::shared_ptr<C2Allocator> sAllocator = []{ in CreateLinearBlock() local
530 if (sAllocator == nullptr) in CreateLinearBlock()
533 bool isValidHandle = sAllocator->checkHandle(cHandle); in CreateLinearBlock()
537 c2_status_t err = sAllocator->priorLinearAllocation(cHandle, &alloc); in CreateLinearBlock()
1561 static std::unique_ptr<C2AllocatorGralloc> sAllocator = std::make_unique<C2AllocatorGralloc>(0); in CreateGraphicBlock() local
1564 if (sAllocator->isValid(cHandle)) { in CreateGraphicBlock()
1565 c2_status_t err = sAllocator->priorGraphicAllocation(cHandle, &alloc); in CreateGraphicBlock()
1582 static std::unique_ptr<C2AllocatorGralloc> sAllocator = std::make_unique<C2AllocatorGralloc>(0); in CreateGraphicBlock() local
1585 if (sAllocator->isValid(cHandle)) { in CreateGraphicBlock()
1586 c2_status_t err = sAllocator->priorGraphicAllocation(cHandle, &alloc); in CreateGraphicBlock()