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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // | 63 // |
64 // Caller is responsible for deleting the returned value. | 64 // Caller is responsible for deleting the returned value. |
65 base::Value* GetFeatureStatus(); | 65 base::Value* GetFeatureStatus(); |
66 | 66 |
67 // Returns the GpuInfo as a DictionaryValue. | 67 // Returns the GpuInfo as a DictionaryValue. |
68 base::DictionaryValue* GpuInfoAsDictionaryValue(); | 68 base::DictionaryValue* GpuInfoAsDictionaryValue(); |
69 | 69 |
70 // Send UMA histograms about the enabled features. | 70 // Send UMA histograms about the enabled features. |
71 void UpdateStats(); | 71 void UpdateStats(); |
72 | 72 |
73 // Returns whether this client has been selected for the force-compositing-mode | 73 // Sets up force-compositing-mode and threaded compositing field trials. |
74 // or threaded-compositor trial. | 74 void InitializeCompositingFieldTrial(); |
75 bool InForceCompositingModeOrThreadTrial(); | |
76 | |
77 // Sets up the force-compositing-mode field trial. | |
78 void InitializeForceCompositingModeFieldTrial(); | |
79 | 75 |
80 } // namespace gpu_util | 76 } // namespace gpu_util |
81 | 77 |
82 #endif // CHROME_BROWSER_GPU_UTIL_H_ | 78 #endif // CHROME_BROWSER_GPU_UTIL_H_ |
OLD | NEW |