#include "gpu/command_buffer/common/skia_utils.h"
#include <inttypes.h>
#include "base/memory/raw_ptr.h"
#include "base/strings/stringprintf.h"
#include "base/trace_event/memory_dump_manager.h"
#include "base/trace_event/process_memory_dump.h"
#include "build/build_config.h"
#include "third_party/skia/include/core/SkTraceMemoryDump.h"
#include "third_party/skia/include/gpu/GrDirectContext.h"
#include "ui/gl/trace_util.h"
namespace gpu {
namespace raster {
namespace {
class SkiaGpuTraceMemoryDump : public SkTraceMemoryDump { … };
}
void DumpGrMemoryStatistics(const GrDirectContext* context,
base::trace_event::ProcessMemoryDump* pmd,
std::optional<uint64_t> tracing_guid) { … }
void DumpBackgroundGrMemoryStatistics(
const GrDirectContext* context,
base::trace_event::ProcessMemoryDump* pmd) { … }
}
}