#include "gpu/ipc/common/gpu_memory_buffer_impl.h"
#include "base/trace_event/memory_allocator_dump_guid.h"
#include "base/trace_event/process_memory_dump.h"
namespace gpu {
GpuMemoryBufferImpl::GpuMemoryBufferImpl(gfx::GpuMemoryBufferId id,
const gfx::Size& size,
gfx::BufferFormat format,
DestructionCallback callback)
: … { … }
GpuMemoryBufferImpl::~GpuMemoryBufferImpl() { … }
gfx::Size GpuMemoryBufferImpl::GetSize() const { … }
gfx::BufferFormat GpuMemoryBufferImpl::GetFormat() const { … }
gfx::GpuMemoryBufferId GpuMemoryBufferImpl::GetId() const { … }
void GpuMemoryBufferImpl::OnMemoryDump(
base::trace_event::ProcessMemoryDump* pmd,
const base::trace_event::MemoryAllocatorDumpGuid& buffer_dump_guid,
uint64_t tracing_process_id,
int importance) const { … }
void GpuMemoryBufferImpl::AssertMapped() { … }
}