| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_GPU_GPU_UTIL_H_ | |
| 6 #define CONTENT_BROWSER_GPU_GPU_UTIL_H_ | |
| 7 | |
| 8 #include <set> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/basictypes.h" | |
| 12 #include "build/build_config.h" | |
| 13 #include "content/common/content_export.h" | |
| 14 #include "content/public/common/gpu_switching_option.h" | |
| 15 | |
| 16 namespace content { | |
| 17 class GpuBlacklist; | |
| 18 | |
| 19 // Maps string to GpuSwitchingOption; returns GPU_SWITCHING_UNKNOWN if an | |
| 20 // unknown name is input (case-sensitive). | |
| 21 CONTENT_EXPORT GpuSwitchingOption StringToGpuSwitchingOption( | |
| 22 const std::string& switching_string); | |
| 23 | |
| 24 // Gets a string version of a GpuSwitchingOption. | |
| 25 CONTENT_EXPORT std::string GpuSwitchingOptionToString( | |
| 26 GpuSwitchingOption option); | |
| 27 | |
| 28 // Send UMA histograms about the enabled features. | |
| 29 CONTENT_EXPORT void UpdateStats( | |
| 30 const GpuBlacklist* blacklist, const std::set<int>& blacklisted_features); | |
| 31 | |
| 32 // Merge features in src into dst. | |
| 33 CONTENT_EXPORT void MergeFeatureSets( | |
| 34 std::set<int>* dst, const std::set<int>& src); | |
| 35 | |
| 36 } // namespace content | |
| 37 | |
| 38 #endif // CONTENT_BROWSER_GPU_GPU_UTIL_H_ | |
| 39 | |
| OLD | NEW |