21.02
|
Default GLES buffer allocator implementation. More...
#include <GCBufferAllocator.h>
Public Member Functions | |
GCBufferAllocator ()=default | |
Default constructor. More... | |
void * | allocate (size_t size, size_t alignment) 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 tensor. More... | |
std::unique_ptr< IMemoryRegion > | make_region (size_t size, size_t alignment) override |
Create self-managed memory region. More... | |
Public Member Functions inherited from IAllocator | |
virtual | ~IAllocator ()=default |
Default virtual destructor. More... | |
Default GLES buffer allocator implementation.
Definition at line 37 of file GCBufferAllocator.h.
|
default |
Default constructor.
|
overridevirtual |
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 IAllocator.
Definition at line 34 of file GCBufferAllocator.cpp.
References ARM_COMPUTE_GL_CHECK, ARM_COMPUTE_UNUSED, glBindBuffer(), and glBufferData().
|
overridevirtual |
Interface to be implemented by the child class to free the allocated tensor.
Implements IAllocator.
Definition at line 46 of file GCBufferAllocator.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_GL_CHECK, and glDeleteBuffers().
|
overridevirtual |
Create self-managed memory region.
[in] | size | Size of the memory region |
[in] | alignment | Alignment of the memory region |
Implements IAllocator.
Definition at line 54 of file GCBufferAllocator.cpp.
References ARM_COMPUTE_UNUSED.