[email protected] | e6933d2a | 2013-03-12 22:32:21 | [diff] [blame] | 1 | // 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 | |||||
avi | 6846aef | 2015-12-26 01:09:38 | [diff] [blame] | 8 | #include "base/macros.h" |
brettw | b1fc1b8 | 2016-02-02 00:19:08 | [diff] [blame] | 9 | #include "components/prefs/pref_change_registrar.h" |
[email protected] | e6933d2a | 2013-03-12 22:32:21 | [diff] [blame] | 10 | |
11 | class PrefRegistrySimple; | ||||
12 | |||||
13 | class GpuModeManager { | ||||
14 | public: | ||||
15 | static void RegisterPrefs(PrefRegistrySimple* registry); | ||||
16 | |||||
17 | GpuModeManager(); | ||||
18 | ~GpuModeManager(); | ||||
19 | |||||
[email protected] | 5837679 | 2013-03-22 23:48:53 | [diff] [blame] | 20 | bool initial_gpu_mode_pref() const; |
[email protected] | e6933d2a | 2013-03-12 22:32:21 | [diff] [blame] | 21 | |
[email protected] | 3e55d05 | 2013-03-22 23:13:27 | [diff] [blame] | 22 | private: |
[email protected] | 5837679 | 2013-03-22 23:48:53 | [diff] [blame] | 23 | static bool IsGpuModePrefEnabled(); |
24 | |||||
[email protected] | e6933d2a | 2013-03-12 22:32:21 | [diff] [blame] | 25 | PrefChangeRegistrar pref_registrar_; |
26 | |||||
[email protected] | 5837679 | 2013-03-22 23:48:53 | [diff] [blame] | 27 | bool initial_gpu_mode_pref_; |
28 | |||||
[email protected] | e6933d2a | 2013-03-12 22:32:21 | [diff] [blame] | 29 | DISALLOW_COPY_AND_ASSIGN(GpuModeManager); |
30 | }; | ||||
31 | |||||
32 | #endif // CHROME_BROWSER_GPU_GPU_MODE_MANAGER_H_ | ||||
33 |