| Index: gpu/config/gpu_info.cc
|
| diff --git a/gpu/config/gpu_info.cc b/gpu/config/gpu_info.cc
|
| index f560dcbb499790c287e07c1e326110808f73cbe1..f1f67cee9178fce094c4532877a53ea22888e90b 100644
|
| --- a/gpu/config/gpu_info.cc
|
| +++ b/gpu/config/gpu_info.cc
|
| @@ -17,6 +17,19 @@ void EnumerateGPUDevice(gpu::GPUInfo::Enumerator* enumerator,
|
| enumerator->EndGPUDevice();
|
| }
|
|
|
| +void EnumerateVideoEncodeAcceleratorSupportedProfile(
|
| + gpu::GPUInfo::Enumerator* enumerator,
|
| + const gpu::VideoEncodeAcceleratorSupportedProfile profile) {
|
| + enumerator->BeginVideoEncodeAcceleratorSupportedProfile();
|
| + enumerator->AddInt("profile", profile.profile);
|
| + enumerator->AddInt("maxResolutionWidth", profile.max_resolution.width());
|
| + enumerator->AddInt("maxResolutionHeight", profile.max_resolution.height());
|
| + enumerator->AddInt("maxFramerateNumerator", profile.max_framerate_numerator);
|
| + enumerator->AddInt("maxFramerateDenominator",
|
| + profile.max_framerate_denominator);
|
| + enumerator->EndVideoEncodeAcceleratorSupportedProfile();
|
| +}
|
| +
|
| } // namespace
|
|
|
| namespace gpu {
|
| @@ -88,6 +101,8 @@ void GPUInfo::EnumerateFields(Enumerator* enumerator) const {
|
| CollectInfoResult dx_diagnostics_info_state;
|
| DxDiagNode dx_diagnostics;
|
| #endif
|
| + std::vector<VideoEncodeAcceleratorSupportedProfile>
|
| + video_encode_accelerator_supported_profiles;
|
| };
|
|
|
| // If this assert fails then most likely something below needs to be updated.
|
| @@ -142,6 +157,12 @@ void GPUInfo::EnumerateFields(Enumerator* enumerator) const {
|
| #if defined(OS_WIN)
|
| enumerator->AddInt("DxDiagnosticsInfoState", dx_diagnostics_info_state);
|
| #endif
|
| + // TODO(kbr): add dx_diagnostics on Windows.
|
| + for (size_t ii = 0; ii < video_encode_accelerator_supported_profiles.size();
|
| + ++ii) {
|
| + EnumerateVideoEncodeAcceleratorSupportedProfile(
|
| + enumerator, video_encode_accelerator_supported_profiles[ii]);
|
| + }
|
| enumerator->EndAuxAttributes();
|
| }
|
|
|
|
|