Chromium Code Reviews| Index: content/common/gpu/media/vaapi_video_encode_accelerator.cc |
| diff --git a/content/common/gpu/media/vaapi_video_encode_accelerator.cc b/content/common/gpu/media/vaapi_video_encode_accelerator.cc |
| index ee785799cf0287d0a68c42e4e26c9bc722ffeec7..8a6e07a187c4ce4275e8a367980291b90dc1b05a 100644 |
| --- a/content/common/gpu/media/vaapi_video_encode_accelerator.cc |
| +++ b/content/common/gpu/media/vaapi_video_encode_accelerator.cc |
| @@ -114,7 +114,7 @@ VaapiVideoEncodeAccelerator::GetSupportedProfiles() { |
| return profiles; |
| std::vector<media::VideoCodecProfile> hw_profiles = |
| - VaapiWrapper::GetSupportedEncodeProfiles(base::Bind(&base::DoNothing)); |
| + VaapiWrapper::GetSupportedProfiles(VaapiWrapper::kEncode); |
| media::VideoEncodeAccelerator::SupportedProfile profile; |
| profile.max_resolution.SetSize(1920, 1088); |
|
wuchengli
2015/02/03 03:17:33
remove
henryhsu
2015/02/13 04:01:03
Done.
|
| @@ -122,6 +122,9 @@ VaapiVideoEncodeAccelerator::GetSupportedProfiles() { |
| profile.max_framerate_denominator = 1; |
| for (size_t i = 0; i < hw_profiles.size(); i++) { |
| profile.profile = hw_profiles[i]; |
| + profile.max_resolution = VaapiWrapper::GetCodecMaxResolution( |
| + profile.profile, |
| + VaapiWrapper::kEncode); |
| profiles.push_back(profile); |
| } |
| return profiles; |