#include "gpu/command_buffer/service/transfer_buffer_manager.h"
#include <stdint.h>
#include <limits>
#include <memory>
#include "base/containers/contains.h"
#include "base/logging.h"
#include "base/process/process_handle.h"
#include "base/strings/stringprintf.h"
#include "base/task/single_thread_task_runner.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/cmd_buffer_common.h"
#include "gpu/command_buffer/service/memory_tracking.h"
namespace gpu {
TransferBufferManager::TransferBufferManager(MemoryTracker* memory_tracker)
: … { … }
TransferBufferManager::~TransferBufferManager() { … }
bool TransferBufferManager::RegisterTransferBuffer(
int32_t id,
scoped_refptr<Buffer> buffer) { … }
void TransferBufferManager::DestroyTransferBuffer(int32_t id) { … }
scoped_refptr<Buffer> TransferBufferManager::GetTransferBuffer(int32_t id) { … }
bool TransferBufferManager::OnMemoryDump(
const base::trace_event::MemoryDumpArgs& args,
base::trace_event::ProcessMemoryDump* pmd) { … }
}