Chromium Code Reviews| Index: chrome/gpu/gpu_thread.cc |
| =================================================================== |
| --- chrome/gpu/gpu_thread.cc (revision 67749) |
| +++ chrome/gpu/gpu_thread.cc (working copy) |
| @@ -129,8 +129,10 @@ |
| } |
| void GpuThread::OnHang() { |
| - for (;;) |
| - PlatformThread::Sleep(1000); |
| + for (;;) { |
| + // Do not sleep here. The GPU watchdog timer tracks the amount of user |
| + // time this thread is using and it doesn't use much while calling Sleep. |
| + } |
| } |
| #if defined(OS_WIN) |