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 CONTENT_PUBLIC_COMMON_GPU_INFO_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_GPU_INFO_H_ |
6 #define CONTENT_PUBLIC_COMMON_GPU_INFO_H_ | 6 #define CONTENT_PUBLIC_COMMON_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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 // The GL_VENDOR string. "" if we are not using OpenGL. | 98 // The GL_VENDOR string. "" if we are not using OpenGL. |
99 std::string gl_vendor; | 99 std::string gl_vendor; |
100 | 100 |
101 // The GL_RENDERER string. "" if we are not using OpenGL. | 101 // The GL_RENDERER string. "" if we are not using OpenGL. |
102 std::string gl_renderer; | 102 std::string gl_renderer; |
103 | 103 |
104 // The GL_EXTENSIONS string. "" if we are not using OpenGL. | 104 // The GL_EXTENSIONS string. "" if we are not using OpenGL. |
105 std::string gl_extensions; | 105 std::string gl_extensions; |
106 | 106 |
| 107 // GL window system binding vendor. "" if not available. |
| 108 std::string gl_ws_vendor; |
| 109 |
| 110 // GL window system binding version. "" if not available. |
| 111 std::string gl_ws_version; |
| 112 |
| 113 // GL window system binding extensions. "" if not available. |
| 114 std::string gl_ws_extensions; |
| 115 |
107 // The device semantics, i.e. whether the Vista and Windows 7 specific | 116 // The device semantics, i.e. whether the Vista and Windows 7 specific |
108 // semantics are available. | 117 // semantics are available. |
109 bool can_lose_context; | 118 bool can_lose_context; |
110 | 119 |
111 // Whether gpu or driver is accessible. | 120 // Whether gpu or driver is accessible. |
112 bool gpu_accessible; | 121 bool gpu_accessible; |
113 | 122 |
114 // By default all values are 0. | 123 // By default all values are 0. |
115 GpuPerformanceStats performance_stats; | 124 GpuPerformanceStats performance_stats; |
116 | 125 |
117 bool software_rendering; | 126 bool software_rendering; |
118 | 127 |
119 // Whether the gpu process is running in a sandbox. | 128 // Whether the gpu process is running in a sandbox. |
120 bool sandboxed; | 129 bool sandboxed; |
121 | 130 |
122 #if defined(OS_WIN) | 131 #if defined(OS_WIN) |
123 // The information returned by the DirectX Diagnostics Tool. | 132 // The information returned by the DirectX Diagnostics Tool. |
124 DxDiagNode dx_diagnostics; | 133 DxDiagNode dx_diagnostics; |
125 #endif | 134 #endif |
126 }; | 135 }; |
127 | 136 |
128 } // namespace content | 137 } // namespace content |
129 | 138 |
130 #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_ | 139 #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_ |
OLD | NEW |