24.02
|
Default Memory Allocator class returned from IBackendInternal::GetDefaultAllocator(MemorySource) More...
#include <GpuFsaBackendDefaultAllocator.hpp>
Public Member Functions | |
GpuFsaBackendDefaultAllocator ()=default | |
void * | allocate (size_t size, size_t alignment=0) override |
Interface to be implemented by the child class to allocate bytes. More... | |
void | free (void *ptr) override |
Interface to be implemented by the child class to free the allocated bytes. More... | |
MemorySource | GetMemorySourceType () override |
Used to specify what type of memory is being allocated by this allocator. More... | |
void * | GetMemoryRegionAtOffset (void *buffer, size_t offset, size_t alignment=0) override |
Interface that may be implemented to allow retrieval of Memory Region from allocated buffer at a certain offset. More... | |
Public Member Functions inherited from ICustomAllocator | |
virtual | ~ICustomAllocator ()=default |
Default virtual destructor. More... | |
Default Memory Allocator class returned from IBackendInternal::GetDefaultAllocator(MemorySource)
Definition at line 18 of file GpuFsaBackendDefaultAllocator.hpp.
|
default |
|
inlineoverridevirtual |
Interface to be implemented by the child class to allocate bytes.
[in] | size | Size to allocate |
[in] | alignment | Alignment that the returned pointer should comply with |
Implements ICustomAllocator.
Definition at line 23 of file GpuFsaBackendDefaultAllocator.hpp.
References armnn::IgnoreUnused().
|
inlineoverridevirtual |
Interface to be implemented by the child class to free the allocated bytes.
Implements ICustomAllocator.
Definition at line 34 of file GpuFsaBackendDefaultAllocator.hpp.
|
inlineoverridevirtual |
Interface that may be implemented to allow retrieval of Memory Region from allocated buffer at a certain offset.
Reimplemented from ICustomAllocator.
Definition at line 45 of file GpuFsaBackendDefaultAllocator.hpp.
References armnn::IgnoreUnused().
|
inlineoverridevirtual |
Used to specify what type of memory is being allocated by this allocator.
Supported types are: MemorySource::Malloc MemorySource::DmaBuf MemorySource::DmaBufProtected
Implements ICustomAllocator.
Definition at line 40 of file GpuFsaBackendDefaultAllocator.hpp.
References armnn::Gralloc.