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

Side by Side Diff: gpu/config/gpu_util.h

Issue 1542013005: Add a new driver bug workaround SANDBOX_START_EARLY Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 2 months 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
« no previous file with comments | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | gpu/config/gpu_util.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) 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 GPU_CONFIG_GPU_UTIL_H_ 5 #ifndef GPU_CONFIG_GPU_UTIL_H_
6 #define GPU_CONFIG_GPU_UTIL_H_ 6 #define GPU_CONFIG_GPU_UTIL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "gpu/gpu_export.h" 13 #include "gpu/gpu_export.h"
14 14
15 namespace base { 15 namespace base {
16 class CommandLine; 16 class CommandLine;
17 } 17 }
18 18
19 namespace gpu { 19 namespace gpu {
20 20
21 struct GPUInfo; 21 struct GPUInfo;
22 22
23 // Merge features in src into dst. 23 // Merge features in src into dst.
24 GPU_EXPORT void MergeFeatureSets( 24 GPU_EXPORT void MergeFeatureSets(
25 std::set<int>* dst, const std::set<int>& src); 25 std::set<int>* dst, const std::set<int>& src);
26 26
27 // With provided GPUInfo, compute the driver bug workarounds and disabled 27 // With provided GPUInfo, compute the driver bug workarounds and disabled
28 // extensions for the current system, and append the |command_line|. 28 // extensions for the current system, and append the |command_line|.
29 GPU_EXPORT void ApplyGpuDriverBugWorkarounds( 29 GPU_EXPORT void ApplyGpuDriverBugWorkarounds(const GPUInfo& gpu_info,
30 const GPUInfo& gpu_info, 30 const std::string& os_version,
31 base::CommandLine* command_line); 31 base::CommandLine* command_line);
32 32
33 // |str| is in the format of "feature1,feature2,...,featureN". 33 // |str| is in the format of "feature1,feature2,...,featureN".
34 GPU_EXPORT void StringToFeatureSet( 34 GPU_EXPORT void StringToFeatureSet(
35 const std::string& str, std::set<int>* feature_set); 35 const std::string& str, std::set<int>* feature_set);
36 36
37 // With provided command line, fill gpu_info->secondary_gpus with parsed 37 // With provided command line, fill gpu_info->secondary_gpus with parsed
38 // secondary vendor and device ids. 38 // secondary vendor and device ids.
39 GPU_EXPORT void ParseSecondaryGpuDevicesFromCommandLine( 39 GPU_EXPORT void ParseSecondaryGpuDevicesFromCommandLine(
40 const base::CommandLine& command_line, 40 const base::CommandLine& command_line,
41 GPUInfo* gpu_info); 41 GPUInfo* gpu_info);
42 42
43 GPU_EXPORT void InitializeDualGpusIfSupported( 43 GPU_EXPORT void InitializeDualGpusIfSupported(
44 const std::set<int>& driver_bug_workarounds); 44 const std::set<int>& driver_bug_workarounds);
45 45
46 } // namespace gpu 46 } // namespace gpu
47 47
48 #endif // GPU_CONFIG_GPU_UTIL_H_ 48 #endif // GPU_CONFIG_GPU_UTIL_H_
49 49
OLDNEW
« no previous file with comments | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | gpu/config/gpu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698