Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index 5aa05675e33cc87f5f3aa5705f246d69faaae1c6..da8cded3e2def8089b1f65ef8ab0754ae3430e01 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -88,6 +88,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" |
@@ -1154,7 +1155,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); |
@@ -1186,6 +1186,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"); |