OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_PRIVATE_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
16 #include "base/observer_list_threadsafe.h" | 16 #include "base/observer_list_threadsafe.h" |
17 #include "content/browser/gpu/gpu_data_manager_impl.h" | 17 #include "content/browser/gpu/gpu_data_manager_impl.h" |
18 #include "gpu/config/gpu_blacklist.h" | 18 #include "gpu/config/gpu_blacklist.h" |
19 #include "gpu/config/gpu_driver_bug_list.h" | 19 #include "gpu/config/gpu_driver_bug_list.h" |
20 | 20 |
| 21 namespace base { |
| 22 class CommandLine; |
| 23 } |
| 24 |
21 namespace content { | 25 namespace content { |
22 | 26 |
23 class CONTENT_EXPORT GpuDataManagerImplPrivate { | 27 class CONTENT_EXPORT GpuDataManagerImplPrivate { |
24 public: | 28 public: |
25 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); | 29 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); |
26 | 30 |
27 void InitializeForTesting( | 31 void InitializeForTesting( |
28 const std::string& gpu_blacklist_json, | 32 const std::string& gpu_blacklist_json, |
29 const gpu::GPUInfo& gpu_info); | 33 const gpu::GPUInfo& gpu_info); |
30 bool IsFeatureBlacklisted(int feature) const; | 34 bool IsFeatureBlacklisted(int feature) const; |
(...skipping 19 matching lines...) Expand all Loading... |
50 std::string* gl_version); | 54 std::string* gl_version); |
51 void DisableHardwareAcceleration(); | 55 void DisableHardwareAcceleration(); |
52 | 56 |
53 void Initialize(); | 57 void Initialize(); |
54 | 58 |
55 void UpdateGpuInfo(const gpu::GPUInfo& gpu_info); | 59 void UpdateGpuInfo(const gpu::GPUInfo& gpu_info); |
56 | 60 |
57 void UpdateVideoMemoryUsageStats( | 61 void UpdateVideoMemoryUsageStats( |
58 const GPUVideoMemoryUsageStats& video_memory_usage_stats); | 62 const GPUVideoMemoryUsageStats& video_memory_usage_stats); |
59 | 63 |
60 void AppendRendererCommandLine(CommandLine* command_line) const; | 64 void AppendRendererCommandLine(base::CommandLine* command_line) const; |
61 | 65 |
62 void AppendGpuCommandLine(CommandLine* command_line) const; | 66 void AppendGpuCommandLine(base::CommandLine* command_line) const; |
63 | 67 |
64 void AppendPluginCommandLine(CommandLine* command_line) const; | 68 void AppendPluginCommandLine(base::CommandLine* command_line) const; |
65 | 69 |
66 void UpdateRendererWebPrefs(WebPreferences* prefs) const; | 70 void UpdateRendererWebPrefs(WebPreferences* prefs) const; |
67 | 71 |
68 std::string GetBlacklistVersion() const; | 72 std::string GetBlacklistVersion() const; |
69 std::string GetDriverBugListVersion() const; | 73 std::string GetDriverBugListVersion() const; |
70 | 74 |
71 void GetBlacklistReasons(base::ListValue* reasons) const; | 75 void GetBlacklistReasons(base::ListValue* reasons) const; |
72 | 76 |
73 void GetDriverBugWorkarounds(base::ListValue* workarounds) const; | 77 void GetDriverBugWorkarounds(base::ListValue* workarounds) const; |
74 | 78 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 // True if all future Initialize calls should be ignored. | 255 // True if all future Initialize calls should be ignored. |
252 bool finalized_; | 256 bool finalized_; |
253 | 257 |
254 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); | 258 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); |
255 }; | 259 }; |
256 | 260 |
257 } // namespace content | 261 } // namespace content |
258 | 262 |
259 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ | 263 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ |
260 | 264 |
OLD | NEW |