OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/common/gpu/media/android_video_decode_accelerator.h" | 5 #include "content/common/gpu/media/android_video_decode_accelerator.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/android/build_info.h" | 9 #include "base/android/build_info.h" |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 profile.min_resolution.SetSize(0, 0); | 1007 profile.min_resolution.SetSize(0, 0); |
1008 // Advertise support for 4k and let the MediaCodec fail when decoding if it | 1008 // Advertise support for 4k and let the MediaCodec fail when decoding if it |
1009 // doesn't support the resolution. It's assumed that consumers won't have | 1009 // doesn't support the resolution. It's assumed that consumers won't have |
1010 // software fallback for H264 on Android anyway. | 1010 // software fallback for H264 on Android anyway. |
1011 profile.max_resolution.SetSize(3840, 2160); | 1011 profile.max_resolution.SetSize(3840, 2160); |
1012 profiles.push_back(profile); | 1012 profiles.push_back(profile); |
1013 } | 1013 } |
1014 | 1014 |
1015 if (UseDeferredRenderingStrategy()) { | 1015 if (UseDeferredRenderingStrategy()) { |
1016 capabilities.flags = media::VideoDecodeAccelerator::Capabilities:: | 1016 capabilities.flags = media::VideoDecodeAccelerator::Capabilities:: |
1017 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE; | 1017 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE | |
| 1018 media::VideoDecodeAccelerator::Capabilities:: |
| 1019 SUPPORTS_EXTERNAL_OUTPUT_SURFACE; |
1018 } | 1020 } |
1019 | 1021 |
1020 return capabilities; | 1022 return capabilities; |
1021 } | 1023 } |
1022 | 1024 |
1023 } // namespace content | 1025 } // namespace content |
OLD | NEW |