Chromium Code Reviews| Index: gpu/config/gpu_info.cc |
| diff --git a/gpu/config/gpu_info.cc b/gpu/config/gpu_info.cc |
| index f1f67cee9178fce094c4532877a53ea22888e90b..17a4f55bb129231d760db94e4f14ff2b352a5e29 100644 |
| --- a/gpu/config/gpu_info.cc |
| +++ b/gpu/config/gpu_info.cc |
| @@ -17,6 +17,23 @@ void EnumerateGPUDevice(gpu::GPUInfo::Enumerator* enumerator, |
| enumerator->EndGPUDevice(); |
| } |
| +void EnumerateVideoDecodeAcceleratorSupportedResolution( |
| + gpu::GPUInfo::Enumerator* enumerator, |
| + const gpu::VideoDecodeAcceleratorSupportedResolution resolution) { |
|
wuchengli
2014/12/22 09:39:24
const &
henryhsu
2014/12/23 02:52:37
Done.
|
| + enumerator->AddInt( |
| + "videoDecodeAcceleratorSupportedResolutionMinWidth", |
| + resolution.min.width()); |
| + enumerator->AddInt( |
| + "videoDecodeAcceleratorSupportedResolutionMinHeight", |
| + resolution.min.height()); |
| + enumerator->AddInt( |
| + "videoDecodeAcceleratorSupportedResolutionMaxWidth", |
| + resolution.max.width()); |
| + enumerator->AddInt( |
| + "videoDecodeAcceleratorSupportedResolutionMaxHeight", |
| + resolution.max.height()); |
| +} |
| + |
| void EnumerateVideoEncodeAcceleratorSupportedProfile( |
| gpu::GPUInfo::Enumerator* enumerator, |
| const gpu::VideoEncodeAcceleratorSupportedProfile profile) { |
| @@ -101,6 +118,8 @@ void GPUInfo::EnumerateFields(Enumerator* enumerator) const { |
| CollectInfoResult dx_diagnostics_info_state; |
| DxDiagNode dx_diagnostics; |
| #endif |
| + VideoDecodeAcceleratorSupportedResolution |
| + video_decode_accelerator_supported_resolution; |
| std::vector<VideoEncodeAcceleratorSupportedProfile> |
| video_encode_accelerator_supported_profiles; |
| }; |
| @@ -158,6 +177,8 @@ void GPUInfo::EnumerateFields(Enumerator* enumerator) const { |
| enumerator->AddInt("DxDiagnosticsInfoState", dx_diagnostics_info_state); |
| #endif |
| // TODO(kbr): add dx_diagnostics on Windows. |
| + EnumerateVideoDecodeAcceleratorSupportedResolution( |
| + enumerator, video_decode_accelerator_supported_resolution); |
| for (size_t ii = 0; ii < video_encode_accelerator_supported_profiles.size(); |
| ++ii) { |
| EnumerateVideoEncodeAcceleratorSupportedProfile( |