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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 bool software_rendering; | 147 bool software_rendering; |
148 | 148 |
149 // Whether the driver uses direct rendering. True on most platforms, false on | 149 // Whether the driver uses direct rendering. True on most platforms, false on |
150 // X11 when using remote X. | 150 // X11 when using remote X. |
151 bool direct_rendering; | 151 bool direct_rendering; |
152 | 152 |
153 // Whether the gpu process is running in a sandbox. | 153 // Whether the gpu process is running in a sandbox. |
154 bool sandboxed; | 154 bool sandboxed; |
155 | 155 |
| 156 // Number of GPU process crashes recorded. |
| 157 int process_crash_count; |
| 158 |
156 #if defined(OS_WIN) | 159 #if defined(OS_WIN) |
157 // The information returned by the DirectX Diagnostics Tool. | 160 // The information returned by the DirectX Diagnostics Tool. |
158 DxDiagNode dx_diagnostics; | 161 DxDiagNode dx_diagnostics; |
159 #endif | 162 #endif |
160 // Note: when adding new members, please remember to update EnumerateFields | 163 // Note: when adding new members, please remember to update EnumerateFields |
161 // in gpu_info.cc. | 164 // in gpu_info.cc. |
162 | 165 |
163 // In conjunction with EnumerateFields, this allows the embedder to | 166 // In conjunction with EnumerateFields, this allows the embedder to |
164 // enumerate the values in this structure without having to embed | 167 // enumerate the values in this structure without having to embed |
165 // references to its specific member variables. This simplifies the | 168 // references to its specific member variables. This simplifies the |
(...skipping 24 matching lines...) Expand all Loading... |
190 virtual ~Enumerator() {} | 193 virtual ~Enumerator() {} |
191 }; | 194 }; |
192 | 195 |
193 // Outputs the fields in this structure to the provided enumerator. | 196 // Outputs the fields in this structure to the provided enumerator. |
194 void EnumerateFields(Enumerator* enumerator) const; | 197 void EnumerateFields(Enumerator* enumerator) const; |
195 }; | 198 }; |
196 | 199 |
197 } // namespace gpu | 200 } // namespace gpu |
198 | 201 |
199 #endif // GPU_CONFIG_GPU_INFO_H_ | 202 #endif // GPU_CONFIG_GPU_INFO_H_ |
OLD | NEW |