| 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 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "base/version.h" |
| 16 #include "build/build_config.h" | 17 #include "build/build_config.h" |
| 17 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
| 18 #include "content/public/common/dx_diag_node.h" | 19 #include "content/public/common/dx_diag_node.h" |
| 19 #include "content/public/common/gpu_performance_stats.h" | 20 #include "content/public/common/gpu_performance_stats.h" |
| 20 | 21 |
| 21 namespace content { | 22 namespace content { |
| 22 | 23 |
| 23 struct CONTENT_EXPORT GPUInfo { | 24 struct CONTENT_EXPORT GPUInfo { |
| 24 struct CONTENT_EXPORT GPUDevice { | 25 struct CONTENT_EXPORT GPUDevice { |
| 25 GPUDevice(); | 26 GPUDevice(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 48 // The amount of time taken to get from the process starting to the message | 49 // The amount of time taken to get from the process starting to the message |
| 49 // loop being pumped. | 50 // loop being pumped. |
| 50 base::TimeDelta initialization_time; | 51 base::TimeDelta initialization_time; |
| 51 | 52 |
| 52 // Computer has NVIDIA Optimus | 53 // Computer has NVIDIA Optimus |
| 53 bool optimus; | 54 bool optimus; |
| 54 | 55 |
| 55 // Computer has AMD Dynamic Switchable Graphics | 56 // Computer has AMD Dynamic Switchable Graphics |
| 56 bool amd_switchable; | 57 bool amd_switchable; |
| 57 | 58 |
| 59 // Version of DisplayLink driver installed. Zero if not installed. |
| 60 Version display_link_version; |
| 61 |
| 58 // Primary GPU, for exmaple, the discrete GPU in a dual GPU machine. | 62 // Primary GPU, for exmaple, the discrete GPU in a dual GPU machine. |
| 59 GPUDevice gpu; | 63 GPUDevice gpu; |
| 60 | 64 |
| 61 // Secondary GPUs, for example, the integrated GPU in a dual GPU machine. | 65 // Secondary GPUs, for example, the integrated GPU in a dual GPU machine. |
| 62 std::vector<GPUDevice> secondary_gpus; | 66 std::vector<GPUDevice> secondary_gpus; |
| 63 | 67 |
| 64 // The vendor of the graphics driver currently installed. | 68 // The vendor of the graphics driver currently installed. |
| 65 std::string driver_vendor; | 69 std::string driver_vendor; |
| 66 | 70 |
| 67 // The version of the graphics driver currently installed. | 71 // The version of the graphics driver currently installed. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 117 |
| 114 #if defined(OS_WIN) | 118 #if defined(OS_WIN) |
| 115 // The information returned by the DirectX Diagnostics Tool. | 119 // The information returned by the DirectX Diagnostics Tool. |
| 116 DxDiagNode dx_diagnostics; | 120 DxDiagNode dx_diagnostics; |
| 117 #endif | 121 #endif |
| 118 }; | 122 }; |
| 119 | 123 |
| 120 } // namespace content | 124 } // namespace content |
| 121 | 125 |
| 122 #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_ | 126 #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_ |
| OLD | NEW |