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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // Whether the driver uses direct rendering. True on most platforms, false on | 199 // Whether the driver uses direct rendering. True on most platforms, false on |
200 // X11 when using remote X. | 200 // X11 when using remote X. |
201 bool direct_rendering; | 201 bool direct_rendering; |
202 | 202 |
203 // Whether the gpu process is running in a sandbox. | 203 // Whether the gpu process is running in a sandbox. |
204 bool sandboxed; | 204 bool sandboxed; |
205 | 205 |
206 // Number of GPU process crashes recorded. | 206 // Number of GPU process crashes recorded. |
207 int process_crash_count; | 207 int process_crash_count; |
208 | 208 |
| 209 // True if the GPU is running in the browser process instead of its own. |
| 210 bool in_process_gpu; |
| 211 |
209 // The state of whether the basic/context/DxDiagnostics info is collected and | 212 // The state of whether the basic/context/DxDiagnostics info is collected and |
210 // if the collection fails or not. | 213 // if the collection fails or not. |
211 CollectInfoResult basic_info_state; | 214 CollectInfoResult basic_info_state; |
212 CollectInfoResult context_info_state; | 215 CollectInfoResult context_info_state; |
213 #if defined(OS_WIN) | 216 #if defined(OS_WIN) |
214 CollectInfoResult dx_diagnostics_info_state; | 217 CollectInfoResult dx_diagnostics_info_state; |
215 | 218 |
216 // The information returned by the DirectX Diagnostics Tool. | 219 // The information returned by the DirectX Diagnostics Tool. |
217 DxDiagNode dx_diagnostics; | 220 DxDiagNode dx_diagnostics; |
218 #endif | 221 #endif |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 virtual ~Enumerator() {} | 269 virtual ~Enumerator() {} |
267 }; | 270 }; |
268 | 271 |
269 // Outputs the fields in this structure to the provided enumerator. | 272 // Outputs the fields in this structure to the provided enumerator. |
270 void EnumerateFields(Enumerator* enumerator) const; | 273 void EnumerateFields(Enumerator* enumerator) const; |
271 }; | 274 }; |
272 | 275 |
273 } // namespace gpu | 276 } // namespace gpu |
274 | 277 |
275 #endif // GPU_CONFIG_GPU_INFO_H_ | 278 #endif // GPU_CONFIG_GPU_INFO_H_ |
OLD | NEW |