#include "gpu/command_buffer/service/gpu_command_buffer_memory_tracker.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/metrics/histogram_macros.h"
#include "base/task/single_thread_task_runner.h"
#include "gpu/ipc/common/command_buffer_id.h"
#include "gpu/ipc/common/gpu_peak_memory.h"
namespace gpu {
GpuCommandBufferMemoryTracker::GpuCommandBufferMemoryTracker(
CommandBufferId command_buffer_id,
uint64_t client_tracing_id,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
Observer* observer)
: … { … }
GpuCommandBufferMemoryTracker::~GpuCommandBufferMemoryTracker() = default;
void GpuCommandBufferMemoryTracker::TrackMemoryAllocatedChange(int64_t delta) { … }
uint64_t GpuCommandBufferMemoryTracker::GetSize() const { … }
uint64_t GpuCommandBufferMemoryTracker::ClientTracingId() const { … }
int GpuCommandBufferMemoryTracker::ClientId() const { … }
uint64_t GpuCommandBufferMemoryTracker::ContextGroupTracingId() const { … }
}