Flutter Engine
The Flutter Engine
|
#include <GrRingBuffer.h>
Classes | |
struct | Slice |
Public Member Functions | |
GrRingBuffer (GrGpu *gpu, size_t size, size_t alignment, GrGpuBufferType intendedType) | |
Slice | suballocate (size_t size) |
void | startSubmit (GrGpu *) |
size_t | size () const |
A wrapper for a GPU buffer that allocates slices in a continuous ring.
It's assumed that suballocate and startSubmit are always called in the same thread, and that finishSubmit could be called in a separate thread.
Definition at line 23 of file GrRingBuffer.h.
|
inline |
Definition at line 25 of file GrRingBuffer.h.
|
inline |
Definition at line 48 of file GrRingBuffer.h.
void GrRingBuffer::startSubmit | ( | GrGpu * | gpu | ) |
Definition at line 87 of file GrRingBuffer.cpp.
GrRingBuffer::Slice GrRingBuffer::suballocate | ( | size_t | size | ) |
Definition at line 57 of file GrRingBuffer.cpp.