Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index bf3da73101f984e273786f235f97de0348f277f5..ed5ecfe6a94875f56e4dbac18ada9cc3ef37fc3b 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -89,6 +89,7 @@ |
#if defined(OS_ANDROID) |
#include "base/android/jni_android.h" |
+#include "components/tracing/graphics_memory_dump_provider_android.h" |
#include "content/browser/android/browser_startup_controller.h" |
#include "content/browser/android/browser_surface_texture_manager.h" |
#include "content/browser/android/in_process_surface_texture_manager.h" |
@@ -1157,7 +1158,6 @@ int BrowserMainLoop::BrowserThreadsStarted() { |
#if !defined(OS_IOS) |
HistogramSynchronizer::GetInstance(); |
- |
#if defined(OS_ANDROID) |
// Up the priority of the UI thread. |
base::PlatformThread::SetCurrentThreadPriority(base::ThreadPriority::DISPLAY); |
@@ -1189,6 +1189,10 @@ int BrowserMainLoop::BrowserThreadsStarted() { |
// BrowserProcessSubThread::IOThreadPreCleanUp). |
base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( |
BrowserGpuMemoryBufferManager::current(), io_thread_->task_runner()); |
+#if defined(OS_ANDROID) |
+ base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( |
+ tracing::GraphicsMemoryDumpProvider::GetInstance()); |
+#endif |
{ |
TRACE_EVENT0("startup", "BrowserThreadsStarted::Subsystem:AudioMan"); |