summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/gpu_watchdog.h
blob: 4d20b0d372f82742e4a15882c8e76556d7cc6b6d (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
// Copyright (c) 2011 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 CONTENT_COMMON_GPU_GPU_WATCHDOG_H_
#define CONTENT_COMMON_GPU_GPU_WATCHDOG_H_

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

  virtual ~GpuWatchdog() {
  };

  virtual void CheckArmed() = 0;

 private:
  DISALLOW_COPY_AND_ASSIGN(GpuWatchdog);
};

#endif  // CONTENT_COMMON_GPU_GPU_WATCHDOG_H_