OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_COMMON_GPU_GPU_WATCHDOG_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_WATCHDOG_H_ |
6 #define CONTENT_COMMON_GPU_GPU_WATCHDOG_H_ | 6 #define CONTENT_COMMON_GPU_GPU_WATCHDOG_H_ |
7 | 7 |
| 8 namespace content { |
| 9 |
8 // Interface for objects that monitor the a GPUProcessor's progress. The | 10 // Interface for objects that monitor the a GPUProcessor's progress. The |
9 // GPUProcessor will regularly invoke CheckArmed. | 11 // GPUProcessor will regularly invoke CheckArmed. |
10 class GpuWatchdog { | 12 class GpuWatchdog { |
11 public: | 13 public: |
12 virtual void CheckArmed() = 0; | 14 virtual void CheckArmed() = 0; |
13 | 15 |
14 protected: | 16 protected: |
15 GpuWatchdog() {} | 17 GpuWatchdog() {} |
16 virtual ~GpuWatchdog() {}; | 18 virtual ~GpuWatchdog() {}; |
17 | 19 |
18 private: | 20 private: |
19 DISALLOW_COPY_AND_ASSIGN(GpuWatchdog); | 21 DISALLOW_COPY_AND_ASSIGN(GpuWatchdog); |
20 }; | 22 }; |
21 | 23 |
| 24 } // namespace content |
| 25 |
22 #endif // CONTENT_COMMON_GPU_GPU_WATCHDOG_H_ | 26 #endif // CONTENT_COMMON_GPU_GPU_WATCHDOG_H_ |
OLD | NEW |