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

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

Issue 1796393002: Remove Exynos from MediaCodec blacklist. Limit MediaTek blacklist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 } 1164 }
1165 1165
1166 // static 1166 // static
1167 media::VideoDecodeAccelerator::Capabilities 1167 media::VideoDecodeAccelerator::Capabilities
1168 AndroidVideoDecodeAccelerator::GetCapabilities() { 1168 AndroidVideoDecodeAccelerator::GetCapabilities() {
1169 Capabilities capabilities; 1169 Capabilities capabilities;
1170 SupportedProfiles& profiles = capabilities.supported_profiles; 1170 SupportedProfiles& profiles = capabilities.supported_profiles;
1171 1171
1172 SupportedProfile profile; 1172 SupportedProfile profile;
1173 1173
1174 if (media::MediaCodecUtil::IsVp8DecoderAvailable()) { 1174 if (media::MediaCodecUtil::IsVp8CodecAvailable()) {
1175 profile.profile = media::VP8PROFILE_ANY; 1175 profile.profile = media::VP8PROFILE_ANY;
1176 profile.min_resolution.SetSize(0, 0); 1176 profile.min_resolution.SetSize(0, 0);
1177 profile.max_resolution.SetSize(1920, 1088); 1177 profile.max_resolution.SetSize(1920, 1088);
1178 profiles.push_back(profile); 1178 profiles.push_back(profile);
1179 } 1179 }
1180 1180
1181 if (media::PlatformHasVp9Support()) { 1181 if (media::PlatformHasVp9Support()) {
1182 profile.profile = media::VP9PROFILE_ANY; 1182 profile.profile = media::VP9PROFILE_ANY;
1183 profile.min_resolution.SetSize(0, 0); 1183 profile.min_resolution.SetSize(0, 0);
1184 profile.max_resolution.SetSize(1920, 1088); 1184 profile.max_resolution.SetSize(1920, 1088);
(...skipping 15 matching lines...) Expand all
1200 capabilities.flags = media::VideoDecodeAccelerator::Capabilities:: 1200 capabilities.flags = media::VideoDecodeAccelerator::Capabilities::
1201 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE | 1201 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE |
1202 media::VideoDecodeAccelerator::Capabilities:: 1202 media::VideoDecodeAccelerator::Capabilities::
1203 SUPPORTS_EXTERNAL_OUTPUT_SURFACE; 1203 SUPPORTS_EXTERNAL_OUTPUT_SURFACE;
1204 } 1204 }
1205 1205
1206 return capabilities; 1206 return capabilities;
1207 } 1207 }
1208 1208
1209 } // namespace content 1209 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/android_video_encode_accelerator.cc » ('j') | media/base/android/media_codec_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698