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

Unified Diff: content/gpu/gpu_watchdog_thread.h

Issue 1991353002: Don't restart the GPU process when switching to another TTY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't exit the GPU process if on a non-host TTY Created 4 years, 7 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') | no next file with comments »
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 c8e00952b26bf8e6c6fe717b02d054bc12574dc9..68d3cd8cb8d7c9b6574e69fa21f21d418b311b5a 100644
--- a/content/gpu/gpu_watchdog_thread.h
+++ b/content/gpu/gpu_watchdog_thread.h
@@ -91,6 +91,10 @@ class GpuWatchdogThread : public base::Thread,
base::ThreadTicks GetWatchedThreadTime();
#endif
+#if defined(USE_X11)
+ int GetActiveTTY() const;
+#endif
+
base::MessageLoop* watched_message_loop_;
base::TimeDelta timeout_;
volatile bool armed_;
@@ -127,14 +131,12 @@ class GpuWatchdogThread : public base::Thread,
base::Time check_time_;
base::TimeTicks check_timeticks_;
-#if defined(OS_CHROMEOS)
- FILE* tty_file_;
-#endif
-
#if defined(USE_X11)
XDisplay* display_;
gfx::AcceleratedWidget window_;
XAtom atom_;
+ FILE* tty_file_;
+ int host_tty_;
#endif
base::WeakPtrFactory<GpuWatchdogThread> weak_factory_;
« no previous file with comments | « no previous file | content/gpu/gpu_watchdog_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698