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