| Index: content/common/gpu/media/android_video_decode_accelerator.cc
|
| diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc
|
| index 92040db982007431aa45379a669f5a9e3fcbdde6..e4f45ca73b36cf7d2a11087c44e23699b25a2b3e 100644
|
| --- a/content/common/gpu/media/android_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/android_video_decode_accelerator.cc
|
| @@ -1292,9 +1292,8 @@ AndroidVideoDecodeAccelerator::GetCapabilities(
|
| Capabilities capabilities;
|
| SupportedProfiles& profiles = capabilities.supported_profiles;
|
|
|
| - SupportedProfile profile;
|
| -
|
| if (media::MediaCodecUtil::IsVp8DecoderAvailable()) {
|
| + SupportedProfile profile;
|
| profile.profile = media::VP8PROFILE_ANY;
|
| profile.min_resolution.SetSize(0, 0);
|
| profile.max_resolution.SetSize(1920, 1088);
|
| @@ -1309,6 +1308,7 @@ AndroidVideoDecodeAccelerator::GetCapabilities(
|
| }
|
|
|
| if (media::MediaCodecUtil::IsVp9DecoderAvailable()) {
|
| + SupportedProfile profile;
|
| profile.min_resolution.SetSize(0, 0);
|
| profile.max_resolution.SetSize(1920, 1088);
|
| // If we know MediaCodec will just create a software codec, prefer our
|
| @@ -1339,11 +1339,11 @@ AndroidVideoDecodeAccelerator::GetCapabilities(
|
| profiles.push_back(profile);
|
| }
|
|
|
| + capabilities.flags = media::VideoDecodeAccelerator::Capabilities::
|
| + SUPPORTS_DEFERRED_INITIALIZATION;
|
| if (UseDeferredRenderingStrategy(gpu_preferences)) {
|
| - capabilities.flags = media::VideoDecodeAccelerator::Capabilities::
|
| - NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE |
|
| - media::VideoDecodeAccelerator::Capabilities::
|
| - SUPPORTS_DEFERRED_INITIALIZATION;
|
| + capabilities.flags |= media::VideoDecodeAccelerator::Capabilities::
|
| + NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE;
|
| if (media::MediaCodecUtil::IsSurfaceViewOutputSupported()) {
|
| capabilities.flags |= media::VideoDecodeAccelerator::Capabilities::
|
| SUPPORTS_EXTERNAL_OUTPUT_SURFACE;
|
|
|