Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: content/common/gpu/media/android_video_decode_accelerator.cc

Issue 1655083002: Enable SurfaceView fullscreen video on Android with WebMediaPlayerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@avda-sv
Patch Set: Add an empty destructor to satisfy chromium-style Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/media/surface_view_manager_messages_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698