diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2013-08-15 21:46:11 +0200 |
---|---|---|
committer | Zeno Albisser <zeno.albisser@digia.com> | 2013-08-15 21:46:11 +0200 |
commit | 679147eead574d186ebf3069647b4c23e8ccace6 (patch) | |
tree | fc247a0ac8ff119f7c8550879ebb6d3dd8d1ff69 /chromium/gpu/config/gpu_util.h | |
download | qtwebengine-chromium-679147eead574d186ebf3069647b4c23e8ccace6.tar.gz |
Initial import.
Diffstat (limited to 'chromium/gpu/config/gpu_util.h')
-rw-r--r-- | chromium/gpu/config/gpu_util.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/chromium/gpu/config/gpu_util.h b/chromium/gpu/config/gpu_util.h new file mode 100644 index 00000000000..6d6800e3923 --- /dev/null +++ b/chromium/gpu/config/gpu_util.h @@ -0,0 +1,38 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef GPU_CONFIG_GPU_UTIL_H_ +#define GPU_CONFIG_GPU_UTIL_H_ + +#include <set> +#include <string> + +#include "build/build_config.h" +#include "gpu/config/gpu_switching_option.h" +#include "gpu/gpu_export.h" + +class CommandLine; + +namespace gpu { + +// Maps string to GpuSwitchingOption; returns GPU_SWITCHING_UNKNOWN if an +// unknown name is input (case-sensitive). +GPU_EXPORT GpuSwitchingOption StringToGpuSwitchingOption( + const std::string& switching_string); + +// Gets a string version of a GpuSwitchingOption. +GPU_EXPORT std::string GpuSwitchingOptionToString(GpuSwitchingOption option); + +// Merge features in src into dst. +GPU_EXPORT void MergeFeatureSets( + std::set<int>* dst, const std::set<int>& src); + +// Collect basic GPUInfo, compute the driver bug workarounds for the current +// system, and append the |command_line|. +GPU_EXPORT void ApplyGpuDriverBugWorkarounds(CommandLine* command_line); + +} // namespace gpu + +#endif // GPU_CONFIG_GPU_UTIL_H_ + |