blob: 878eae6bee54c0059c691b1ec33a677be1490291 [file] [log] [blame]
[email protected]e6933d2a2013-03-12 22:32:211// Copyright (c) 2013 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 CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_
6#define CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_
7
avi6846aef2015-12-26 01:09:388#include "base/macros.h"
brettwb1fc1b82016-02-02 00:19:089#include "components/prefs/pref_change_registrar.h"
[email protected]e6933d2a2013-03-12 22:32:2110
11class PrefRegistrySimple;
12
13class GpuModeManager {
14 public:
15 static void RegisterPrefs(PrefRegistrySimple* registry);
16
17 GpuModeManager();
18 ~GpuModeManager();
19
[email protected]58376792013-03-22 23:48:5320 bool initial_gpu_mode_pref() const;
[email protected]e6933d2a2013-03-12 22:32:2121
[email protected]3e55d052013-03-22 23:13:2722 private:
[email protected]58376792013-03-22 23:48:5323 static bool IsGpuModePrefEnabled();
24
[email protected]e6933d2a2013-03-12 22:32:2125 PrefChangeRegistrar pref_registrar_;
26
[email protected]58376792013-03-22 23:48:5327 bool initial_gpu_mode_pref_;
28
[email protected]e6933d2a2013-03-12 22:32:2129 DISALLOW_COPY_AND_ASSIGN(GpuModeManager);
30};
31
32#endif // CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_
33