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 GPU_CONFIG_GPU_INFO_H_ | 5 #ifndef GPU_CONFIG_GPU_INFO_H_ |
6 #define GPU_CONFIG_GPU_INFO_H_ | 6 #define GPU_CONFIG_GPU_INFO_H_ |
7 | 7 |
8 // Provides access to the GPU information for the system | 8 // Provides access to the GPU information for the system |
9 // on which chrome is currently running. | 9 // on which chrome is currently running. |
10 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 // The device semantics, i.e. whether the Vista and Windows 7 specific | 132 // The device semantics, i.e. whether the Vista and Windows 7 specific |
133 // semantics are available. | 133 // semantics are available. |
134 bool can_lose_context; | 134 bool can_lose_context; |
135 | 135 |
136 // By default all values are 0. | 136 // By default all values are 0. |
137 GpuPerformanceStats performance_stats; | 137 GpuPerformanceStats performance_stats; |
138 | 138 |
139 bool software_rendering; | 139 bool software_rendering; |
140 | 140 |
| 141 // Whether the driver uses direct rendering. True on most platforms, false on |
| 142 // X11 when using remote X. |
| 143 bool direct_rendering; |
| 144 |
141 // Whether the gpu process is running in a sandbox. | 145 // Whether the gpu process is running in a sandbox. |
142 bool sandboxed; | 146 bool sandboxed; |
143 | 147 |
144 #if defined(OS_WIN) | 148 #if defined(OS_WIN) |
145 // The information returned by the DirectX Diagnostics Tool. | 149 // The information returned by the DirectX Diagnostics Tool. |
146 DxDiagNode dx_diagnostics; | 150 DxDiagNode dx_diagnostics; |
147 #endif | 151 #endif |
148 // Note: when adding new members, please remember to update EnumerateFields | 152 // Note: when adding new members, please remember to update EnumerateFields |
149 // in gpu_info.cc. | 153 // in gpu_info.cc. |
150 | 154 |
(...skipping 27 matching lines...) Expand all Loading... |
178 virtual ~Enumerator() {} | 182 virtual ~Enumerator() {} |
179 }; | 183 }; |
180 | 184 |
181 // Outputs the fields in this structure to the provided enumerator. | 185 // Outputs the fields in this structure to the provided enumerator. |
182 void EnumerateFields(Enumerator* enumerator) const; | 186 void EnumerateFields(Enumerator* enumerator) const; |
183 }; | 187 }; |
184 | 188 |
185 } // namespace gpu | 189 } // namespace gpu |
186 | 190 |
187 #endif // GPU_CONFIG_GPU_INFO_H_ | 191 #endif // GPU_CONFIG_GPU_INFO_H_ |
OLD | NEW |