| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // The date of the graphics driver currently installed. | 94 // The date of the graphics driver currently installed. |
| 95 std::string driver_date; | 95 std::string driver_date; |
| 96 | 96 |
| 97 // The version of the pixel/fragment shader used by the gpu. | 97 // The version of the pixel/fragment shader used by the gpu. |
| 98 std::string pixel_shader_version; | 98 std::string pixel_shader_version; |
| 99 | 99 |
| 100 // The version of the vertex shader used by the gpu. | 100 // The version of the vertex shader used by the gpu. |
| 101 std::string vertex_shader_version; | 101 std::string vertex_shader_version; |
| 102 | 102 |
| 103 // The machine model identifier with format "name major.minor". | 103 // The machine model identifier. They can contain any character, including |
| 104 // Name should not contain any whitespaces. | 104 // whitespaces. Currently it is supported on MacOSX and Android. |
| 105 std::string machine_model; | 105 // Android examples: "Naxus 5", "XT1032". |
| 106 // On MacOSX, the version is stripped out of the model identifier, for |
| 107 // example, the original identifier is "MacBookPro7,2", and we put |
| 108 // "MacBookPro" as machine_model_name, and "7.2" as machine_model_version. |
| 109 std::string machine_model_name; |
| 110 |
| 111 // The version of the machine model. Currently it is supported on MacOSX. |
| 112 // See machine_model_name's comment. |
| 113 std::string machine_model_version; |
| 106 | 114 |
| 107 // The version of OpenGL we are using. | 115 // The version of OpenGL we are using. |
| 108 // TODO(zmo): should be able to tell if it's GL or GLES. | 116 // TODO(zmo): should be able to tell if it's GL or GLES. |
| 109 std::string gl_version; | 117 std::string gl_version; |
| 110 | 118 |
| 111 // The GL_VERSION string. "" if we are not using OpenGL. | 119 // The GL_VERSION string. "" if we are not using OpenGL. |
| 112 std::string gl_version_string; | 120 std::string gl_version_string; |
| 113 | 121 |
| 114 // The GL_VENDOR string. "" if we are not using OpenGL. | 122 // The GL_VENDOR string. "" if we are not using OpenGL. |
| 115 std::string gl_vendor; | 123 std::string gl_vendor; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 virtual ~Enumerator() {} | 194 virtual ~Enumerator() {} |
| 187 }; | 195 }; |
| 188 | 196 |
| 189 // Outputs the fields in this structure to the provided enumerator. | 197 // Outputs the fields in this structure to the provided enumerator. |
| 190 void EnumerateFields(Enumerator* enumerator) const; | 198 void EnumerateFields(Enumerator* enumerator) const; |
| 191 }; | 199 }; |
| 192 | 200 |
| 193 } // namespace gpu | 201 } // namespace gpu |
| 194 | 202 |
| 195 #endif // GPU_CONFIG_GPU_INFO_H_ | 203 #endif // GPU_CONFIG_GPU_INFO_H_ |
| OLD | NEW |