25 #ifndef ARM_COMPUTE_GCTENSORALLOCATOR_H 26 #define ARM_COMPUTE_GCTENSORALLOCATOR_H 81 uint8_t *
map(
bool blocking);
103 void free()
override;
116 uint8_t *lock()
override;
119 void unlock()
override;
~GCTensorAllocator()=default
Default destructor.
uint8_t * map(bool blocking)
Enqueue a map operation of the allocated buffer on the given queue.
GCTensorAllocator & operator=(const GCTensorAllocator &)=delete
Prevent instances of this class from being copy assigned (As this class contains pointers) ...
void free() override
Free allocated GLES memory.
void set_associated_memory_group(IMemoryGroup *associated_memory_group)
Associates the tensor with a memory group.
Basic implementation of a GLES memory tensor allocator.
void unmap()
Enqueue an unmap operation of the allocated buffer on the given queue.
Copyright (c) 2017-2021 Arm Limited.
void allocate() override
Allocate size specified by TensorInfo of GLES memory.
uint8_t * data()
Interface to be implemented by the child class to return the pointer to the mapped data...
GLuint get_gl_ssbo_name() const
Get the OpenGL ES buffer object name.
GLES implementation of memory object.
Wrapper to configure the Khronos EGL and OpenGL ES C header.
Interface of an object than can be memory managed.
GCTensorAllocator(IMemoryManageable *owner=nullptr)
Default constructor.
Interface to allocate tensors.