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

Unified Diff: content/gpu/gpu_main.cc

Issue 22289002: Added suspend/resume detection to the GpuWatchdogThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « no previous file | content/gpu/gpu_watchdog_thread.h » ('j') | content/gpu/gpu_watchdog_thread.cc » ('J')
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 4446c3c3bf27ae742caf3777a253aecd96a2979e..0f2648aa9de1069fc15af471d2682628cfc7e59b 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -294,6 +294,8 @@ int GpuMain(const MainFunctionParams& parameters) {
gpu_process.set_main_thread(child_thread);
+ watchdog_thread->AddPowerObserver();
+
{
TRACE_EVENT0("gpu", "Run Message Loop");
main_message_loop.Run();
« no previous file with comments | « no previous file | content/gpu/gpu_watchdog_thread.h » ('j') | content/gpu/gpu_watchdog_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698