Lines Matching refs:allocator
25 offset(0), size(0), allocator(nullptr), addr(std::move(bufData)) in Memory()
29 Memory::Memory(size_t capacity, std::shared_ptr<Allocator> allocator, size_t align, MemoryType type… in Memory() argument
31 size(0), allocator(std::move(allocator)), addr(nullptr) in Memory()
37 if (this->allocator) { in Memory()
38 addr = std::shared_ptr<uint8_t>(static_cast<uint8_t*>(this->allocator->Alloc(allocSize)), in Memory()
39 … [this](uint8_t* ptr) { this->allocator->Free(static_cast<void*>(ptr)); }); in Memory()
200 … std::shared_ptr<Allocator> allocator, size_t align) in CreateDefaultBuffer() argument
203 … std::shared_ptr<Memory> memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align)); in CreateDefaultBuffer()
238 std::shared_ptr<Memory> Buffer::AllocMemory(std::shared_ptr<Allocator> allocator, size_t capacity, … in AllocMemory() argument
240 auto type = (allocator != nullptr) ? allocator->GetMemoryType() : MemoryType::VIRTUAL_ADDR; in AllocMemory()
244 memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align)); in AllocMemory()
249 memory = std::shared_ptr<Memory>(new SurfaceMemory(capacity, allocator, align)); in AllocMemory()
253 memory = std::shared_ptr<Memory>(new ShareMemory(capacity, allocator, align)); in AllocMemory()