Home | History | Annotate | Download | only in gpu
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef CONTENT_COMMON_GPU_GPU_WATCHDOG_H_
      6 #define CONTENT_COMMON_GPU_GPU_WATCHDOG_H_
      7 
      8 namespace content {
      9 
     10 // Interface for objects that monitor the a GPUProcessor's progress. The
     11 // GPUProcessor will regularly invoke CheckArmed.
     12 class GpuWatchdog {
     13  public:
     14   virtual void CheckArmed() = 0;
     15 
     16  protected:
     17   GpuWatchdog() {}
     18   virtual ~GpuWatchdog() {};
     19 
     20  private:
     21   DISALLOW_COPY_AND_ASSIGN(GpuWatchdog);
     22 };
     23 
     24 }  // namespace content
     25 
     26 #endif  // CONTENT_COMMON_GPU_GPU_WATCHDOG_H_
     27