| Index: media/gpu/android_video_decode_accelerator.cc
|
| diff --git a/media/gpu/android_video_decode_accelerator.cc b/media/gpu/android_video_decode_accelerator.cc
|
| index 3d0e4cfad202723f65d976df288d3dc51748af16..89431fa2db5a18f65d57030ffafa82e7556a8d45 100644
|
| --- a/media/gpu/android_video_decode_accelerator.cc
|
| +++ b/media/gpu/android_video_decode_accelerator.cc
|
| @@ -1408,20 +1408,19 @@ AndroidVideoDecodeAccelerator::GetCapabilities(
|
| profiles.push_back(profile);
|
| }
|
|
|
| - capabilities.flags =
|
| - VideoDecodeAccelerator::Capabilities::SUPPORTS_DEFERRED_INITIALIZATION;
|
| - capabilities.flags |=
|
| - VideoDecodeAccelerator::Capabilities::NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE;
|
| + capabilities.flags = Capabilities::SUPPORTS_DEFERRED_INITIALIZATION |
|
| + Capabilities::NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE |
|
| + Capabilities::SUPPORTS_ENCRYPTED_STREAMS;
|
|
|
| // If we're using threaded texture mailboxes the COPY_REQUIRED flag must be
|
| // set on the video frames (http://crbug.com/582170), and SurfaceView output
|
| // is disabled (http://crbug.com/582170).
|
| if (gpu_preferences.enable_threaded_texture_mailboxes) {
|
| - capabilities.flags |=
|
| - VideoDecodeAccelerator::Capabilities::REQUIRES_TEXTURE_COPY;
|
| + capabilities.flags |= Capabilities::REQUIRES_TEXTURE_COPY;
|
| } else if (MediaCodecUtil::IsSurfaceViewOutputSupported()) {
|
| - capabilities.flags |=
|
| - VideoDecodeAccelerator::Capabilities::SUPPORTS_EXTERNAL_OUTPUT_SURFACE;
|
| + capabilities.flags |= Capabilities::SUPPORTS_EXTERNAL_OUTPUT_SURFACE;
|
| + if (MediaCodecUtil::IsSetOutputSurfaceSupported())
|
| + capabilities.flags |= Capabilities::SUPPORTS_SET_EXTERNAL_OUTPUT_SURFACE;
|
| }
|
|
|
| #if BUILDFLAG(ENABLE_HEVC_DEMUXING)
|
|
|