#include "gpu/command_buffer/service/memory_tracking.h"
#include "base/task/sequenced_task_runner.h"
namespace gpu {
MemoryTypeTracker::MemoryTypeTracker(MemoryTracker* memory_tracker)
: … { … }
MemoryTypeTracker::MemoryTypeTracker(
MemoryTracker* memory_tracker,
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
MemoryTypeTracker::~MemoryTypeTracker() { … }
void MemoryTypeTracker::TrackMemAlloc(size_t bytes) { … }
void MemoryTypeTracker::TrackMemFree(size_t bytes) { … }
size_t MemoryTypeTracker::GetMemRepresented() const { … }
void MemoryTypeTracker::TrackMemoryAllocatedChange(int64_t delta) { … }
}