| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "gpu/config/gpu_info.h" | 7 #include "gpu/config/gpu_info.h" |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 GPUInfo::GPUInfo(const GPUInfo& other) = default; | 88 GPUInfo::GPUInfo(const GPUInfo& other) = default; |
| 89 | 89 |
| 90 GPUInfo::~GPUInfo() { } | 90 GPUInfo::~GPUInfo() { } |
| 91 | 91 |
| 92 void GPUInfo::EnumerateFields(Enumerator* enumerator) const { | 92 void GPUInfo::EnumerateFields(Enumerator* enumerator) const { |
| 93 struct GPUInfoKnownFields { | 93 struct GPUInfoKnownFields { |
| 94 base::TimeDelta initialization_time; | 94 base::TimeDelta initialization_time; |
| 95 bool optimus; | 95 bool optimus; |
| 96 bool amd_switchable; | 96 bool amd_switchable; |
| 97 bool lenovo_dcute; | 97 bool lenovo_dcute; |
| 98 Version display_link_version; | 98 base::Version display_link_version; |
| 99 GPUDevice gpu; | 99 GPUDevice gpu; |
| 100 std::vector<GPUDevice> secondary_gpus; | 100 std::vector<GPUDevice> secondary_gpus; |
| 101 uint64_t adapter_luid; | 101 uint64_t adapter_luid; |
| 102 std::string driver_vendor; | 102 std::string driver_vendor; |
| 103 std::string driver_version; | 103 std::string driver_version; |
| 104 std::string driver_date; | 104 std::string driver_date; |
| 105 std::string pixel_shader_version; | 105 std::string pixel_shader_version; |
| 106 std::string vertex_shader_version; | 106 std::string vertex_shader_version; |
| 107 std::string max_msaa_samples; | 107 std::string max_msaa_samples; |
| 108 std::string machine_model_name; | 108 std::string machine_model_name; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 video_decode_accelerator_capabilities.supported_profiles) | 193 video_decode_accelerator_capabilities.supported_profiles) |
| 194 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); | 194 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); |
| 195 for (const auto& profile : video_encode_accelerator_supported_profiles) | 195 for (const auto& profile : video_encode_accelerator_supported_profiles) |
| 196 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); | 196 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); |
| 197 enumerator->AddBool("jpegDecodeAcceleratorSupported", | 197 enumerator->AddBool("jpegDecodeAcceleratorSupported", |
| 198 jpeg_decode_accelerator_supported); | 198 jpeg_decode_accelerator_supported); |
| 199 enumerator->EndAuxAttributes(); | 199 enumerator->EndAuxAttributes(); |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace gpu | 202 } // namespace gpu |
| OLD | NEW |