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

Unified Diff: content/gpu/gpu_watchdog_thread.h

Issue 836473003: Avoid gpu watchdog crash on timeout if X is un-responsive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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.cc » ('j') | content/gpu/gpu_watchdog_thread.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_watchdog_thread.h
diff --git a/content/gpu/gpu_watchdog_thread.h b/content/gpu/gpu_watchdog_thread.h
index c766ca3493796949c6f8365c5f879630a8de38e0..2259c31b58fa14305d917c0eb975b7955c69945d 100644
--- a/content/gpu/gpu_watchdog_thread.h
+++ b/content/gpu/gpu_watchdog_thread.h
@@ -62,6 +62,9 @@ class GpuWatchdogThread : public base::Thread,
void OnAcknowledge();
void OnCheck(bool after_suspend);
void DeliberatelyTerminateToRecoverFromHang();
+#if defined(USE_X11)
+ void CheckXServerActive();
+#endif
void OnAddPowerObserver();
@@ -93,6 +96,10 @@ class GpuWatchdogThread : public base::Thread,
FILE* tty_file_;
#endif
+#if defined(USE_X11)
+ bool x_server_active;
danakj 2015/01/06 00:29:19 member variables have _ suffix
+#endif
+
base::WeakPtrFactory<GpuWatchdogThread> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(GpuWatchdogThread);
« no previous file with comments | « no previous file | content/gpu/gpu_watchdog_thread.cc » ('j') | content/gpu/gpu_watchdog_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698