23#ifndef CACHED_CONTAINER_GPU_H_
24#define CACHED_CONTAINER_GPU_H_
54 void Unmap()
override;
void Map() override
Finish the vertices updates stage.
bool m_isMapped
Vertex buffer handle.
unsigned int GetBufferHandle() const override
Return handle to the vertex buffer.
virtual unsigned int AllItemsSize() const override
bool IsMapped() const override
Prepare the container for vertices updates.
bool defragmentResizeStaged(unsigned int aNewSize)
Grow the buffer while keeping the peak video memory at max(old, new) rather than old + new,...
bool defragmentResizeMemcpy(unsigned int aNewSize)
void Unmap() override
Finish the vertices updates stage.
CACHED_CONTAINER_GPU(unsigned int aSize=DEFAULT_SIZE)
bool defragmentResize(unsigned int aNewSize) override
Remove empty spaces between chunks and optionally resizes the container.
unsigned int m_glBufferHandle
Flag saying whether it is safe to use glCopyBufferSubData.
CACHED_CONTAINER(unsigned int aSize=DEFAULT_SIZE)
static constexpr unsigned int DEFAULT_SIZE
The Cairo implementation of the graphics abstraction layer.