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 <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "build/build_config.h" | |
12 #include "content/common/content_export.h" | |
13 #include "content/public/common/gpu_feature_type.h" | |
14 | |
15 class GpuBlacklist; | |
16 | |
17 namespace gpu_util { | |
18 | |
19 // Maps string to GpuFeatureType; returns GPU_FEATURE_TYPE_UNKNOWN if none of | |
20 // the following is input (case-sensitive): | |
21 // "accelerated_2d_canvas" | |
22 // "accelerated_compositing" | |
23 // "webgl" | |
24 // "multisampling" | |
25 CONTENT_EXPORT content::GpuFeatureType StringToGpuFeatureType( | |
26 const std::string& feature_string); | |
27 | |
28 // Gets a string version of a feature type for use in about:gpu. Will yield | |
29 // strings from StringToGpuFeatureType, e.g. | |
30 // GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS becomes "accelerated_2d_canvas" | |
31 CONTENT_EXPORT std::string GpuFeatureTypeToString( | |
32 content::GpuFeatureType feature); | |
33 | |
34 // Send UMA histograms about the enabled features. | |
35 CONTENT_EXPORT void UpdateStats( | |
36 const GpuBlacklist* blacklist, uint32 blacklisted_features); | |
37 | |
38 } // namespace gpu_util | |
39 | |
40 #endif // CONTENT_BROWSER_GPU_GPU_UTIL_H_ | |
41 | |
OLD | NEW |