From 679147eead574d186ebf3069647b4c23e8ccace6 Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Thu, 15 Aug 2013 21:46:11 +0200 Subject: Initial import. --- chromium/gpu/config/gpu_util.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 chromium/gpu/config/gpu_util.h (limited to 'chromium/gpu/config/gpu_util.h') 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 +#include + +#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* dst, const std::set& 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_ + -- cgit v1.2.1