Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.h

Issue 57633007: Merge gpu_switching_list into gpu_driver_bug_list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final final Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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 <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "base/process/kill.h" 16 #include "base/process/kill.h"
17 #include "base/synchronization/lock.h" 17 #include "base/synchronization/lock.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "base/values.h" 19 #include "base/values.h"
20 #include "content/public/browser/gpu_data_manager.h" 20 #include "content/public/browser/gpu_data_manager.h"
21 #include "content/public/common/gpu_memory_stats.h" 21 #include "content/public/common/gpu_memory_stats.h"
22 #include "content/public/common/three_d_api_types.h" 22 #include "content/public/common/three_d_api_types.h"
23 #include "gpu/config/gpu_info.h" 23 #include "gpu/config/gpu_info.h"
24 #include "gpu/config/gpu_switching_option.h"
25 24
26 class CommandLine; 25 class CommandLine;
27 class GURL; 26 class GURL;
28 struct WebPreferences; 27 struct WebPreferences;
29 28
30 namespace content { 29 namespace content {
31 30
32 class GpuDataManagerImplPrivate; 31 class GpuDataManagerImplPrivate;
33 32
34 class CONTENT_EXPORT GpuDataManagerImpl 33 class CONTENT_EXPORT GpuDataManagerImpl
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // kDisableGLMultisampling. 101 // kDisableGLMultisampling.
103 void AppendGpuCommandLine(CommandLine* command_line) const; 102 void AppendGpuCommandLine(CommandLine* command_line) const;
104 103
105 // Insert switches into plugin process command line: 104 // Insert switches into plugin process command line:
106 // kDisableCoreAnimationPlugins. 105 // kDisableCoreAnimationPlugins.
107 void AppendPluginCommandLine(CommandLine* command_line) const; 106 void AppendPluginCommandLine(CommandLine* command_line) const;
108 107
109 // Update WebPreferences for renderer based on blacklisting decisions. 108 // Update WebPreferences for renderer based on blacklisting decisions.
110 void UpdateRendererWebPrefs(WebPreferences* prefs) const; 109 void UpdateRendererWebPrefs(WebPreferences* prefs) const;
111 110
112 gpu::GpuSwitchingOption GetGpuSwitchingOption() const;
113
114 std::string GetBlacklistVersion() const; 111 std::string GetBlacklistVersion() const;
115 std::string GetDriverBugListVersion() const; 112 std::string GetDriverBugListVersion() const;
116 113
117 // Returns the reasons for the latest run of blacklisting decisions. 114 // Returns the reasons for the latest run of blacklisting decisions.
118 // For the structure of returned value, see documentation for 115 // For the structure of returned value, see documentation for
119 // GpuBlacklist::GetBlacklistedReasons(). 116 // GpuBlacklist::GetBlacklistedReasons().
120 void GetBlacklistReasons(base::ListValue* reasons) const; 117 void GetBlacklistReasons(base::ListValue* reasons) const;
121 118
122 // Returns the workarounds that are applied to the current system as 119 // Returns the workarounds that are applied to the current system as
123 // a list of strings. 120 // a list of strings.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 209
213 mutable base::Lock lock_; 210 mutable base::Lock lock_;
214 scoped_ptr<GpuDataManagerImplPrivate> private_; 211 scoped_ptr<GpuDataManagerImplPrivate> private_;
215 212
216 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 213 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
217 }; 214 };
218 215
219 } // namespace content 216 } // namespace content
220 217
221 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 218 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698