Index: content/gpu/gpu_main.cc |
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc |
index d27ef2b96da449a526abb8dd2e75888cc6c11f80..93d03aa43db85886b5dbc9ab48d12206c44e532d 100644 |
--- a/content/gpu/gpu_main.cc |
+++ b/content/gpu/gpu_main.cc |
@@ -47,6 +47,11 @@ |
#include "ui/gl/gl_switches.h" |
#include "ui/gl/gpu_switching_manager.h" |
+#if defined(OS_ANDROID) |
+#include "base/trace_event/memory_dump_manager.h" |
+#include "components/tracing/graphics_memory_dump_provider_android.h" |
+#endif |
+ |
#if defined(OS_WIN) |
#include "base/win/windows_version.h" |
#include "base/win/scoped_com_initializer.h" |
@@ -383,6 +388,11 @@ int GpuMain(const MainFunctionParams& parameters) { |
if (watchdog_thread.get()) |
watchdog_thread->AddPowerObserver(); |
+#if defined(OS_ANDROID) |
+ base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( |
+ tracing::GraphicsMemoryDumpProvider::GetInstance()); |
+#endif |
+ |
{ |
TRACE_EVENT0("gpu", "Run Message Loop"); |
main_message_loop.Run(); |