summaryrefslogtreecommitdiffstats
path: root/ash/gpu_support_stub.h
blob: ff581ea27192e8abab9198fb4cd3c0946c055720 (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
29
30
31
32
33
// Copyright 2014 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 ASH_GPU_SUPPORT_STUB_H_
#define ASH_GPU_SUPPORT_STUB_H_

#include "ash/ash_export.h"
#include "ash/gpu_support.h"
#include "base/compiler_specific.h"
#include "base/macros.h"

namespace ash {

// A GPUSupport object that does not depend on src/content.
class ASH_EXPORT GPUSupportStub : public GPUSupport {
 public:
  GPUSupportStub();
  ~GPUSupportStub() override;

 private:
  // Overridden from GPUSupport:
  bool IsPanelFittingDisabled() const override;
  void DisableGpuWatchdog() override;
  void GetGpuProcessHandles(
      const GetGpuProcessHandlesCallback& callback) const override;

  DISALLOW_COPY_AND_ASSIGN(GPUSupportStub);
};

}  // namespace ash

#endif  // ASH_GPU_SUPPORT_STUB_H_