Index: content/gpu/gpu_main.cc |
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc |
index fac874b9081af9092d4a4b691a5cb6aac07ec6ec..d41fd76efef2bd034e4900d02e9156f7174abb57 100644 |
--- a/content/gpu/gpu_main.cc |
+++ b/content/gpu/gpu_main.cc |
@@ -206,7 +206,9 @@ int GpuMain(const MainFunctionParams& parameters) { |
// consuming has completed, otherwise the process is liable to be aborted. |
if (enable_watchdog && !delayed_watchdog_enable) { |
watchdog_thread = new GpuWatchdogThread(kGpuTimeout); |
- watchdog_thread->Start(); |
+ base::Thread::Options options; |
+ options.timer_slack = base::TIMER_SLACK_MAXIMUM; |
+ watchdog_thread->StartWithOptions(options); |
} |
gpu::GPUInfo gpu_info; |
@@ -300,7 +302,9 @@ int GpuMain(const MainFunctionParams& parameters) { |
if (enable_watchdog && delayed_watchdog_enable) { |
watchdog_thread = new GpuWatchdogThread(kGpuTimeout); |
- watchdog_thread->Start(); |
+ base::Thread::Options options; |
+ options.timer_slack = base::TIMER_SLACK_MAXIMUM; |
+ watchdog_thread->StartWithOptions(options); |
} |
// OSMesa is expected to run very slowly, so disable the watchdog in that |
@@ -495,7 +499,9 @@ bool StartSandboxLinux(const gpu::GPUInfo& gpu_info, |
// with only one thread. |
res = LinuxSandbox::InitializeSandbox(); |
if (watchdog_thread) { |
- watchdog_thread->Start(); |
+ base::Thread::Options options; |
+ options.timer_slack = base::TIMER_SLACK_MAXIMUM; |
+ watchdog_thread->StartWithOptions(options); |
} |
return res; |