| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 enumerator->EndVideoEncodeAcceleratorSupportedProfile(); | 44 enumerator->EndVideoEncodeAcceleratorSupportedProfile(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace | 47 } // namespace |
| 48 | 48 |
| 49 namespace gpu { | 49 namespace gpu { |
| 50 | 50 |
| 51 VideoDecodeAcceleratorCapabilities::VideoDecodeAcceleratorCapabilities() | 51 VideoDecodeAcceleratorCapabilities::VideoDecodeAcceleratorCapabilities() |
| 52 : flags(0) {} | 52 : flags(0) {} |
| 53 | 53 |
| 54 VideoDecodeAcceleratorCapabilities::VideoDecodeAcceleratorCapabilities( |
| 55 const VideoDecodeAcceleratorCapabilities& other) = default; |
| 56 |
| 54 VideoDecodeAcceleratorCapabilities::~VideoDecodeAcceleratorCapabilities() {} | 57 VideoDecodeAcceleratorCapabilities::~VideoDecodeAcceleratorCapabilities() {} |
| 55 | 58 |
| 56 GPUInfo::GPUDevice::GPUDevice() | 59 GPUInfo::GPUDevice::GPUDevice() |
| 57 : vendor_id(0), | 60 : vendor_id(0), |
| 58 device_id(0), | 61 device_id(0), |
| 59 active(false) { | 62 active(false) { |
| 60 } | 63 } |
| 61 | 64 |
| 62 GPUInfo::GPUDevice::~GPUDevice() { } | 65 GPUInfo::GPUDevice::~GPUDevice() { } |
| 63 | 66 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 74 process_crash_count(0), | 77 process_crash_count(0), |
| 75 in_process_gpu(true), | 78 in_process_gpu(true), |
| 76 basic_info_state(kCollectInfoNone), | 79 basic_info_state(kCollectInfoNone), |
| 77 context_info_state(kCollectInfoNone), | 80 context_info_state(kCollectInfoNone), |
| 78 #if defined(OS_WIN) | 81 #if defined(OS_WIN) |
| 79 dx_diagnostics_info_state(kCollectInfoNone), | 82 dx_diagnostics_info_state(kCollectInfoNone), |
| 80 #endif | 83 #endif |
| 81 jpeg_decode_accelerator_supported(false) { | 84 jpeg_decode_accelerator_supported(false) { |
| 82 } | 85 } |
| 83 | 86 |
| 87 GPUInfo::GPUInfo(const GPUInfo& other) = default; |
| 88 |
| 84 GPUInfo::~GPUInfo() { } | 89 GPUInfo::~GPUInfo() { } |
| 85 | 90 |
| 86 void GPUInfo::EnumerateFields(Enumerator* enumerator) const { | 91 void GPUInfo::EnumerateFields(Enumerator* enumerator) const { |
| 87 struct GPUInfoKnownFields { | 92 struct GPUInfoKnownFields { |
| 88 base::TimeDelta initialization_time; | 93 base::TimeDelta initialization_time; |
| 89 bool optimus; | 94 bool optimus; |
| 90 bool amd_switchable; | 95 bool amd_switchable; |
| 91 bool lenovo_dcute; | 96 bool lenovo_dcute; |
| 92 Version display_link_version; | 97 Version display_link_version; |
| 93 GPUDevice gpu; | 98 GPUDevice gpu; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 video_decode_accelerator_capabilities.supported_profiles) | 192 video_decode_accelerator_capabilities.supported_profiles) |
| 188 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); | 193 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); |
| 189 for (const auto& profile : video_encode_accelerator_supported_profiles) | 194 for (const auto& profile : video_encode_accelerator_supported_profiles) |
| 190 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); | 195 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); |
| 191 enumerator->AddBool("jpegDecodeAcceleratorSupported", | 196 enumerator->AddBool("jpegDecodeAcceleratorSupported", |
| 192 jpeg_decode_accelerator_supported); | 197 jpeg_decode_accelerator_supported); |
| 193 enumerator->EndAuxAttributes(); | 198 enumerator->EndAuxAttributes(); |
| 194 } | 199 } |
| 195 | 200 |
| 196 } // namespace gpu | 201 } // namespace gpu |
| OLD | NEW |