OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 class CommandLine; | 24 class CommandLine; |
25 | 25 |
26 class CONTENT_EXPORT GpuDataManagerImpl | 26 class CONTENT_EXPORT GpuDataManagerImpl |
27 : public NON_EXPORTED_BASE(content::GpuDataManager) { | 27 : public NON_EXPORTED_BASE(content::GpuDataManager) { |
28 public: | 28 public: |
29 // Getter for the singleton. This will return NULL on failure. | 29 // Getter for the singleton. This will return NULL on failure. |
30 static GpuDataManagerImpl* GetInstance(); | 30 static GpuDataManagerImpl* GetInstance(); |
31 | 31 |
32 // GpuDataManager implementation. | 32 // GpuDataManager implementation. |
33 virtual void Initialize( | 33 virtual void Initialize(const std::string& browser_version_string) OVERRIDE; |
34 const std::string& browser_version_string, | |
35 const std::string& gpu_blacklist_json) OVERRIDE; | |
36 virtual void Initialize( | 34 virtual void Initialize( |
37 const std::string& browser_version_string, | 35 const std::string& browser_version_string, |
38 const std::string& gpu_blacklist_json, | 36 const std::string& gpu_blacklist_json, |
39 const content::GPUInfo& gpu_info) OVERRIDE; | 37 const content::GPUInfo& gpu_info) OVERRIDE; |
40 virtual content::GpuFeatureType GetBlacklistedFeatures() const OVERRIDE; | 38 virtual content::GpuFeatureType GetBlacklistedFeatures() const OVERRIDE; |
41 virtual content::GpuSwitchingOption GetGpuSwitchingOption() const OVERRIDE; | 39 virtual content::GpuSwitchingOption GetGpuSwitchingOption() const OVERRIDE; |
42 virtual base::ListValue* GetBlacklistReasons() const OVERRIDE; | 40 virtual base::ListValue* GetBlacklistReasons() const OVERRIDE; |
43 virtual std::string GetBlacklistVersion() const OVERRIDE; | 41 virtual std::string GetBlacklistVersion() const OVERRIDE; |
44 virtual content::GPUInfo GetGPUInfo() const OVERRIDE; | 42 virtual content::GPUInfo GetGPUInfo() const OVERRIDE; |
45 virtual bool GpuAccessAllowed() const OVERRIDE; | 43 virtual bool GpuAccessAllowed() const OVERRIDE; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 bool card_blacklisted_; | 140 bool card_blacklisted_; |
143 | 141 |
144 // We disable histogram stuff in testing, especially in unit tests because | 142 // We disable histogram stuff in testing, especially in unit tests because |
145 // they cause random failures. | 143 // they cause random failures. |
146 bool update_histograms_; | 144 bool update_histograms_; |
147 | 145 |
148 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 146 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
149 }; | 147 }; |
150 | 148 |
151 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 149 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
OLD | NEW |