| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if defined(OS_WIN) | 5 #if defined(OS_WIN) |
| 6 #include <windows.h> | 6 #include <windows.h> |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include "chrome/gpu/gpu_watchdog_thread.h" | 9 #include "content/gpu/gpu_watchdog_thread.h" |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 const int64 kCheckPeriod = 2000; | 15 const int64 kCheckPeriod = 2000; |
| 16 | 16 |
| 17 void DoNothing() { | 17 void DoNothing() { |
| 18 } | 18 } |
| 19 } | 19 } |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 #endif | 234 #endif |
| 235 | 235 |
| 236 LOG(ERROR) << "The GPU process hung. Terminating after " | 236 LOG(ERROR) << "The GPU process hung. Terminating after " |
| 237 << timeout_ << " ms."; | 237 << timeout_ << " ms."; |
| 238 | 238 |
| 239 volatile int* null_pointer = NULL; | 239 volatile int* null_pointer = NULL; |
| 240 *null_pointer = timeout; | 240 *null_pointer = timeout; |
| 241 | 241 |
| 242 crashed = true; | 242 crashed = true; |
| 243 } | 243 } |
| OLD | NEW |