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

Unified Diff: media/gpu/android_video_decode_accelerator.cc

Issue 2348683002: Disallow vp8 MediaCodec in MediaCodecUtil instead of AVDA. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/android/java/src/org/chromium/media/MediaCodecUtil.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6e371786589982a5ba4098ef709b199eef6986f5..a394e5db420b2f80f82d1c635dcd8f0191f5951d 100644
--- a/media/gpu/android_video_decode_accelerator.cc
+++ b/media/gpu/android_video_decode_accelerator.cc
@@ -1563,12 +1563,7 @@ AndroidVideoDecodeAccelerator::GetCapabilities(
Capabilities capabilities;
SupportedProfiles& profiles = capabilities.supported_profiles;
- // Only support VP8 on Android versions where we don't have to synchronously
- // tear down the MediaCodec on surface destruction because VP8 requires
- // us to completely drain the decoder before releasing it, which is difficult
- // and time consuming to do while the surface is being destroyed.
- if (base::android::BuildInfo::GetInstance()->sdk_int() >= 18 &&
- MediaCodecUtil::IsVp8DecoderAvailable()) {
+ if (MediaCodecUtil::IsVp8DecoderAvailable()) {
SupportedProfile profile;
profile.profile = VP8PROFILE_ANY;
profile.min_resolution.SetSize(0, 0);
« no previous file with comments | « media/base/android/java/src/org/chromium/media/MediaCodecUtil.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698