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

Unified Diff: content/gpu/gpu_main.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 | « content/gpu/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « content/gpu/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698