8#ifndef GrRingBuffer_DEFINED
9#define GrRingBuffer_DEFINED
28 , fAlignment(alignment)
30 , fNewAllocation(
false)
48 size_t size()
const {
return fTotalSize; }
51 size_t getAllocationOffset(
size_t size);
57 static void FinishSubmit(
void*);
61 std::vector<sk_sp<GrGpuBuffer>> fPreviousBuffers;
constexpr bool SkIsPow2(T value)
void startSubmit(GrGpu *)
GrRingBuffer(GrGpu *gpu, size_t size, size_t alignment, GrGpuBufferType intendedType)
Slice suballocate(size_t size)