#include "gpu/command_buffer/client/ring_buffer.h"
#include <stdint.h>
#include <algorithm>
#include <ostream>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/numerics/safe_conversions.h"
#include "gpu/command_buffer/client/cmd_buffer_helper.h"
namespace gpu {
RingBuffer::RingBuffer(uint32_t alignment,
Offset base_offset,
uint32_t size,
CommandBufferHelper* helper,
void* base)
: … { … }
RingBuffer::~RingBuffer() { … }
void RingBuffer::FreeOldestBlock() { … }
void* RingBuffer::Alloc(uint32_t size) { … }
void RingBuffer::FreePendingToken(void* pointer, uint32_t token) { … }
void RingBuffer::DiscardBlock(void* pointer) { … }
uint32_t RingBuffer::GetLargestFreeSizeNoWaiting() { … }
uint32_t RingBuffer::GetLargestFreeSizeNoWaitingInternal() { … }
uint32_t RingBuffer::GetTotalFreeSizeNoWaiting() { … }
void RingBuffer::ShrinkLastBlock(uint32_t new_size) { … }
}