summaryrefslogtreecommitdiff
path: root/chromium/gpu/ipc/service/gpu_watchdog.h
blob: 41f173279d18cf44be6e5d415c1e4e233d863139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef GPU_IPC_SERVICE_GPU_WATCHDOG_H_
#define GPU_IPC_SERVICE_GPU_WATCHDOG_H_

#include "base/macros.h"

namespace gpu {

// Interface for objects that monitor the a GPUProcessor's progress. The
// GPUProcessor will regularly invoke CheckArmed.
class GpuWatchdog {
 public:
  virtual void CheckArmed() = 0;

 protected:
  GpuWatchdog() {}
  virtual ~GpuWatchdog() {};

 private:
  DISALLOW_COPY_AND_ASSIGN(GpuWatchdog);
};

}  // namespace gpu

#endif  // GPU_IPC_SERVICE_GPU_WATCHDOG_H_