#include "gpu/command_buffer/client/cmd_buffer_helper.h"
#include <stdint.h>
#include <algorithm>
#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
#include "base/trace_event/memory_allocator_dump.h"
#include "base/trace_event/memory_dump_manager.h"
#include "base/trace_event/process_memory_dump.h"
#include "base/trace_event/trace_event.h"
#include "gpu/command_buffer/common/buffer.h"
#include "gpu/command_buffer/common/command_buffer.h"
#include "gpu/command_buffer/common/constants.h"
namespace gpu {
CommandBufferHelper::CommandBufferHelper(CommandBuffer* command_buffer)
: … { … }
void CommandBufferHelper::SetAutomaticFlushes(bool enabled) { … }
bool CommandBufferHelper::IsContextLost() { … }
void CommandBufferHelper::CalcImmediateEntries(int waiting_count) { … }
bool CommandBufferHelper::AllocateRingBuffer() { … }
void CommandBufferHelper::SetGetBuffer(int32_t id,
scoped_refptr<Buffer> buffer) { … }
void CommandBufferHelper::FreeRingBuffer() { … }
gpu::ContextResult CommandBufferHelper::Initialize(uint32_t ring_buffer_size) { … }
CommandBufferHelper::~CommandBufferHelper() { … }
void CommandBufferHelper::UpdateCachedState(const CommandBuffer::State& state) { … }
bool CommandBufferHelper::WaitForGetOffsetInRange(int32_t start, int32_t end) { … }
void CommandBufferHelper::Flush() { … }
void CommandBufferHelper::FlushLazy() { … }
void CommandBufferHelper::OrderingBarrier() { … }
#if defined(CMD_HELPER_PERIODIC_FLUSH_CHECK)
void CommandBufferHelper::PeriodicFlushCheck() { … }
#endif
bool CommandBufferHelper::Finish() { … }
int32_t CommandBufferHelper::InsertToken() { … }
bool CommandBufferHelper::HasTokenPassed(int32_t token) { … }
void CommandBufferHelper::RefreshCachedToken() { … }
bool CommandBufferHelper::HasCachedTokenPassed(int32_t token) { … }
void CommandBufferHelper::WaitForToken(int32_t token) { … }
void CommandBufferHelper::WaitForAvailableEntries(int32_t count) { … }
int32_t CommandBufferHelper::GetTotalFreeEntriesNoWaiting() const { … }
bool CommandBufferHelper::OnMemoryDump(
const base::trace_event::MemoryDumpArgs& args,
base::trace_event::ProcessMemoryDump* pmd) { … }
}