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(const gpu::GPUInfo::GPUDevice& device, | 9 void EnumerateGPUDevice(const gpu::GPUInfo::GPUDevice& device, |
10 gpu::GPUInfo::Enumerator* enumerator) { | 10 gpu::GPUInfo::Enumerator* enumerator) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 } | 75 } |
76 | 76 |
77 GPUInfo::~GPUInfo() { } | 77 GPUInfo::~GPUInfo() { } |
78 | 78 |
79 void GPUInfo::EnumerateFields(Enumerator* enumerator) const { | 79 void GPUInfo::EnumerateFields(Enumerator* enumerator) const { |
80 struct GPUInfoKnownFields { | 80 struct GPUInfoKnownFields { |
81 base::TimeDelta initialization_time; | 81 base::TimeDelta initialization_time; |
82 bool optimus; | 82 bool optimus; |
83 bool amd_switchable; | 83 bool amd_switchable; |
84 bool lenovo_dcute; | 84 bool lenovo_dcute; |
85 base::Version display_link_version; | 85 Version display_link_version; |
86 GPUDevice gpu; | 86 GPUDevice gpu; |
87 std::vector<GPUDevice> secondary_gpus; | 87 std::vector<GPUDevice> secondary_gpus; |
88 uint64 adapter_luid; | 88 uint64 adapter_luid; |
89 std::string driver_vendor; | 89 std::string driver_vendor; |
90 std::string driver_version; | 90 std::string driver_version; |
91 std::string driver_date; | 91 std::string driver_date; |
92 std::string pixel_shader_version; | 92 std::string pixel_shader_version; |
93 std::string vertex_shader_version; | 93 std::string vertex_shader_version; |
94 std::string max_msaa_samples; | 94 std::string max_msaa_samples; |
95 std::string machine_model_name; | 95 std::string machine_model_name; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 for (const auto& profile : video_decode_accelerator_supported_profiles) | 178 for (const auto& profile : video_decode_accelerator_supported_profiles) |
179 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); | 179 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); |
180 for (const auto& profile : video_encode_accelerator_supported_profiles) | 180 for (const auto& profile : video_encode_accelerator_supported_profiles) |
181 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); | 181 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); |
182 enumerator->AddBool("jpegDecodeAcceleratorSupported", | 182 enumerator->AddBool("jpegDecodeAcceleratorSupported", |
183 jpeg_decode_accelerator_supported); | 183 jpeg_decode_accelerator_supported); |
184 enumerator->EndAuxAttributes(); | 184 enumerator->EndAuxAttributes(); |
185 } | 185 } |
186 | 186 |
187 } // namespace gpu | 187 } // namespace gpu |
OLD | NEW |