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 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 profile.min_resolution.SetSize(0, 0); | 1008 profile.min_resolution.SetSize(0, 0); |
1009 // Advertise support for 4k and let the MediaCodec fail when decoding if it | 1009 // Advertise support for 4k and let the MediaCodec fail when decoding if it |
1010 // doesn't support the resolution. It's assumed that consumers won't have | 1010 // doesn't support the resolution. It's assumed that consumers won't have |
1011 // software fallback for H264 on Android anyway. | 1011 // software fallback for H264 on Android anyway. |
1012 profile.max_resolution.SetSize(3840, 2160); | 1012 profile.max_resolution.SetSize(3840, 2160); |
1013 profiles.push_back(profile); | 1013 profiles.push_back(profile); |
1014 } | 1014 } |
1015 | 1015 |
1016 if (UseDeferredRenderingStrategy()) { | 1016 if (UseDeferredRenderingStrategy()) { |
1017 capabilities.flags = media::VideoDecodeAccelerator::Capabilities:: | 1017 capabilities.flags = media::VideoDecodeAccelerator::Capabilities:: |
1018 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE; | 1018 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE | |
| 1019 media::VideoDecodeAccelerator::Capabilities:: |
| 1020 SUPPORTS_EXTERNAL_OUTPUT_SURFACE; |
1019 } | 1021 } |
1020 | 1022 |
1021 return capabilities; | 1023 return capabilities; |
1022 } | 1024 } |
1023 | 1025 |
1024 } // namespace content | 1026 } // namespace content |
OLD | NEW |