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

Unified Diff: content/gpu/gpu_main.cc

Issue 17074009: Created multi-process-friendly PowerMonitor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 794617dde93681fba6c84b4bba9635e1cf178bbc..7635cf3358d6944fa7e29b1b7e6dfc79058874ee 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -19,6 +19,7 @@
#include "content/child/child_process.h"
#include "content/common/gpu/gpu_config.h"
#include "content/common/gpu/gpu_messages.h"
+#include "content/common/power_monitor_client.h"
#include "content/common/sandbox_linux.h"
#include "content/gpu/gpu_child_thread.h"
#include "content/gpu/gpu_process.h"
@@ -169,6 +170,7 @@ int GpuMain(const MainFunctionParams& parameters) {
delayed_watchdog_enable = true;
#endif
+ PowerMonitorClient power_monitor;
Ken Russell (switch to Gerrit) 2013/06/24 22:54:38 I don't think this function should stack-allocate
bajones 2013/06/25 18:33:34 While my gut reaction is to agree with you, this i
scoped_refptr<GpuWatchdogThread> watchdog_thread;
// Start the GPU watchdog only after anything that is expected to be time

Powered by Google App Engine
This is Rietveld 408576698