Save variables on stack to help determine why GPU watchdog is firing.
Grab the current time in various formats so we can compare how long it's
been since the last ack.
Also use QueryUnbiasedInterruptTime to determine whether the computer
has been suspended recently.
BUG=588342
Review URL: https://codereview.chromium.org/1804303002
Cr-Commit-Position: refs/heads/master@{#381656}
diff --git a/content/gpu/gpu_watchdog_thread.h b/content/gpu/gpu_watchdog_thread.h
index 480e585..2f8cecd7 100644
--- a/content/gpu/gpu_watchdog_thread.h
+++ b/content/gpu/gpu_watchdog_thread.h
@@ -108,6 +108,10 @@
#if defined(OS_WIN)
void* watched_thread_handle_;
base::TimeDelta arm_cpu_time_;
+
+ // This measures the time that the system has been running, in units of 100
+ // ns.
+ ULONGLONG arm_interrupt_time_;
#endif
// Time after which it's assumed that the computer has been suspended since
@@ -118,6 +122,7 @@
// This is the time the last check was sent.
base::Time check_time_;
+ base::TimeTicks check_timeticks_;
#if defined(OS_CHROMEOS)
FILE* tty_file_;