| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 // Computer has AMD Dynamic Switchable Graphics | 137 // Computer has AMD Dynamic Switchable Graphics |
| 138 bool amd_switchable; | 138 bool amd_switchable; |
| 139 | 139 |
| 140 // Primary GPU, for exmaple, the discrete GPU in a dual GPU machine. | 140 // Primary GPU, for exmaple, the discrete GPU in a dual GPU machine. |
| 141 GPUDevice gpu; | 141 GPUDevice gpu; |
| 142 | 142 |
| 143 // Secondary GPUs, for example, the integrated GPU in a dual GPU machine. | 143 // Secondary GPUs, for example, the integrated GPU in a dual GPU machine. |
| 144 std::vector<GPUDevice> secondary_gpus; | 144 std::vector<GPUDevice> secondary_gpus; |
| 145 | 145 |
| 146 // The currently active gpu. |
| 147 const GPUDevice& active_gpu() const; |
| 148 |
| 146 // The vendor of the graphics driver currently installed. | 149 // The vendor of the graphics driver currently installed. |
| 147 std::string driver_vendor; | 150 std::string driver_vendor; |
| 148 | 151 |
| 149 // The version of the graphics driver currently installed. | 152 // The version of the graphics driver currently installed. |
| 150 std::string driver_version; | 153 std::string driver_version; |
| 151 | 154 |
| 152 // The date of the graphics driver currently installed. | 155 // The date of the graphics driver currently installed. |
| 153 std::string driver_date; | 156 std::string driver_date; |
| 154 | 157 |
| 155 // The version of the pixel/fragment shader used by the gpu. | 158 // The version of the pixel/fragment shader used by the gpu. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 virtual ~Enumerator() {} | 287 virtual ~Enumerator() {} |
| 285 }; | 288 }; |
| 286 | 289 |
| 287 // Outputs the fields in this structure to the provided enumerator. | 290 // Outputs the fields in this structure to the provided enumerator. |
| 288 void EnumerateFields(Enumerator* enumerator) const; | 291 void EnumerateFields(Enumerator* enumerator) const; |
| 289 }; | 292 }; |
| 290 | 293 |
| 291 } // namespace gpu | 294 } // namespace gpu |
| 292 | 295 |
| 293 #endif // GPU_CONFIG_GPU_INFO_H_ | 296 #endif // GPU_CONFIG_GPU_INFO_H_ |
| OLD | NEW |