OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_GPU_UTIL_H_ | 5 #ifndef CHROME_BROWSER_GPU_UTIL_H_ |
6 #define CHROME_BROWSER_GPU_UTIL_H_ | 6 #define CHROME_BROWSER_GPU_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/public/common/gpu_feature_type.h" | 10 #include "content/public/common/gpu_feature_type.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // | 45 // |
46 // The features reported are not 1:1 with GpuFeatureType. Rather, they are: | 46 // The features reported are not 1:1 with GpuFeatureType. Rather, they are: |
47 // '2d_canvas' | 47 // '2d_canvas' |
48 // '3d_css' | 48 // '3d_css' |
49 // 'composting', | 49 // 'composting', |
50 // 'webgl', | 50 // 'webgl', |
51 // 'multisampling', | 51 // 'multisampling', |
52 // 'flash_3d', | 52 // 'flash_3d', |
53 // 'flash_stage3d', | 53 // 'flash_stage3d', |
54 // 'texture_sharing' | 54 // 'texture_sharing' |
| 55 // 'video_decode' |
55 // | 56 // |
56 // Each problems has: | 57 // Each problems has: |
57 // { | 58 // { |
58 // "description": "Your GPU is too old", | 59 // "description": "Your GPU is too old", |
59 // "crBugs": [1234], | 60 // "crBugs": [1234], |
60 // "webkitBugs": [] | 61 // "webkitBugs": [] |
61 // } | 62 // } |
62 // | 63 // |
63 // Caller is responsible for deleting the returned value. | 64 // Caller is responsible for deleting the returned value. |
64 base::Value* GetFeatureStatus(); | 65 base::Value* GetFeatureStatus(); |
65 | 66 |
66 // Returns the GpuInfo as a DictionaryValue. | 67 // Returns the GpuInfo as a DictionaryValue. |
67 base::DictionaryValue* GpuInfoAsDictionaryValue(); | 68 base::DictionaryValue* GpuInfoAsDictionaryValue(); |
68 | 69 |
69 // Send UMA histograms about the enabled features. | 70 // Send UMA histograms about the enabled features. |
70 void UpdateStats(); | 71 void UpdateStats(); |
71 | 72 |
72 // Returns whether this client has been selected for the force-compositing-mode | 73 // Returns whether this client has been selected for the force-compositing-mode |
73 // or threaded-compositor trial. | 74 // or threaded-compositor trial. |
74 bool InForceCompositingModeOrThreadTrial(); | 75 bool InForceCompositingModeOrThreadTrial(); |
75 | 76 |
76 // Sets up the force-compositing-mode field trial. | 77 // Sets up the force-compositing-mode field trial. |
77 void InitializeForceCompositingModeFieldTrial(); | 78 void InitializeForceCompositingModeFieldTrial(); |
78 | 79 |
79 } // namespace gpu_util | 80 } // namespace gpu_util |
80 | 81 |
81 #endif // CHROME_BROWSER_GPU_UTIL_H_ | 82 #endif // CHROME_BROWSER_GPU_UTIL_H_ |
OLD | NEW |