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

Unified Diff: content/gpu/gpu_watchdog_thread.h

Issue 1980263002: GPU Watchdog to check I/O before terminating GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoid creating the temp file in advance 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
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..b243cb8d625c5dae30dc06769e81589de3b158fa 100644
--- a/content/gpu/gpu_watchdog_thread.h
+++ b/content/gpu/gpu_watchdog_thread.h
@@ -127,6 +127,13 @@ class GpuWatchdogThread : public base::Thread,
base::Time check_time_;
base::TimeTicks check_timeticks_;
+ // This specifies whether to use writing to a temp file as an additional step
+ // before crashing the process. That is used to allow the I/O queue to clear
+ // and give the watched thread more time to unblock in case it is blocked on
+ // a hard fault or other I/O.
+ bool use_temp_file_for_io_checking_;
+ base::TimeDelta io_check_duration_;
+
#if defined(OS_CHROMEOS)
FILE* tty_file_;
#endif

Powered by Google App Engine
This is Rietveld 408576698