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

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: Rebase 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
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index e7ce06e5a26c77121d07c5db178ceba7c8a250c7..558df340e88d403e634937efb39189ff11e9204d 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"
@@ -382,6 +387,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();
« components/tracing/graphics_memory_dump_provider_android.cc ('K') | « content/gpu/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698