| 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 #include "gpu/config/gpu_info.h" | 5 #include "gpu/config/gpu_info.h" |
| 6 | 6 |
| 7 namespace { | 7 namespace { |
| 8 | 8 |
| 9 void EnumerateGPUDevice(gpu::GPUInfo::Enumerator* enumerator, | 9 void EnumerateGPUDevice(gpu::GPUInfo::Enumerator* enumerator, |
| 10 const gpu::GPUInfo::GPUDevice& device) { | 10 const gpu::GPUInfo::GPUDevice& device) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 GPUInfo::~GPUInfo() { } | 42 GPUInfo::~GPUInfo() { } |
| 43 | 43 |
| 44 void GPUInfo::EnumerateFields(Enumerator* enumerator) const { | 44 void GPUInfo::EnumerateFields(Enumerator* enumerator) const { |
| 45 struct GPUInfoKnownFields { | 45 struct GPUInfoKnownFields { |
| 46 bool finalized; | 46 bool finalized; |
| 47 base::TimeDelta initialization_time; | 47 base::TimeDelta initialization_time; |
| 48 bool optimus; | 48 bool optimus; |
| 49 bool amd_switchable; | 49 bool amd_switchable; |
| 50 bool lenovo_dcute; | 50 bool lenovo_dcute; |
| 51 base::Version display_link_version; | 51 Version display_link_version; |
| 52 GPUDevice gpu; | 52 GPUDevice gpu; |
| 53 std::vector<GPUDevice> secondary_gpus; | 53 std::vector<GPUDevice> secondary_gpus; |
| 54 uint64 adapter_luid; | 54 uint64 adapter_luid; |
| 55 std::string driver_vendor; | 55 std::string driver_vendor; |
| 56 std::string driver_version; | 56 std::string driver_version; |
| 57 std::string driver_date; | 57 std::string driver_date; |
| 58 std::string pixel_shader_version; | 58 std::string pixel_shader_version; |
| 59 std::string vertex_shader_version; | 59 std::string vertex_shader_version; |
| 60 std::string machine_model; | 60 std::string machine_model; |
| 61 std::string gl_version; | 61 std::string gl_version; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 static_cast<int>(gl_reset_notification_strategy)); | 120 static_cast<int>(gl_reset_notification_strategy)); |
| 121 enumerator->AddBool("can_lose_context", can_lose_context); | 121 enumerator->AddBool("can_lose_context", can_lose_context); |
| 122 // TODO(kbr): add performance_stats. | 122 // TODO(kbr): add performance_stats. |
| 123 enumerator->AddBool("softwareRendering", software_rendering); | 123 enumerator->AddBool("softwareRendering", software_rendering); |
| 124 enumerator->AddBool("sandboxed", sandboxed); | 124 enumerator->AddBool("sandboxed", sandboxed); |
| 125 // TODO(kbr): add dx_diagnostics on Windows. | 125 // TODO(kbr): add dx_diagnostics on Windows. |
| 126 enumerator->EndAuxAttributes(); | 126 enumerator->EndAuxAttributes(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace gpu | 129 } // namespace gpu |
| OLD | NEW |