summaryrefslogtreecommitdiffstats
path: root/gpu/config/gpu_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/config/gpu_util.h')
-rw-r--r--gpu/config/gpu_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gpu/config/gpu_util.h b/gpu/config/gpu_util.h
index 58e2db0..39aeb20 100644
--- a/gpu/config/gpu_util.h
+++ b/gpu/config/gpu_util.h
@@ -15,6 +15,8 @@ class CommandLine;
namespace gpu {
+struct GPUInfo;
+
// Merge features in src into dst.
GPU_EXPORT void MergeFeatureSets(
std::set<int>* dst, const std::set<int>& src);
@@ -23,6 +25,11 @@ GPU_EXPORT void MergeFeatureSets(
// system, and append the |command_line|.
GPU_EXPORT void ApplyGpuDriverBugWorkarounds(CommandLine* command_line);
+// With provided GPUInfo, compute the driver bug workarounds for the current
+// system, and append the |command_line|.
+GPU_EXPORT void ApplyGpuDriverBugWorkarounds(
+ const GPUInfo& gpu_inco, CommandLine* command_line);
+
// |str| is in the format of "feature1,feature2,...,featureN".
GPU_EXPORT void StringToFeatureSet(
const std::string& str, std::set<int>* feature_set);