Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: content/browser/browser_main_loop.cc

Issue 1383733002: [tracing] Add graphics memory dump provider for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add memtrack to column name Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/tracing/graphics_memory_dump_provider_android.cc ('k') | content/gpu/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « components/tracing/graphics_memory_dump_provider_android.cc ('k') | content/gpu/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698