Index: content/common/gpu/media/android_video_decode_accelerator.cc |
diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc |
index eb01d27f6740382f02ad8ba1be4e1f4f4d55d2bd..06d59863d049cacd6c03b22a0ebbf0e908d9755e 100644 |
--- a/content/common/gpu/media/android_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc |
@@ -554,4 +554,20 @@ void AndroidVideoDecodeAccelerator::NotifyError( |
client_->NotifyError(error); |
} |
+// static |
+media::VideoDecodeAccelerator::SupportedProfiles |
+AndroidVideoDecodeAccelerator::GetSupportedProfiles() { |
+ SupportedProfiles profiles; |
+ if (media::VideoCodecBridge::IsKnownUnaccelerated( |
+ media::kCodecVP8, media::MEDIA_CODEC_DECODER)) { |
+ return profiles; |
+ } |
+ SupportedProfile profile; |
+ profile.profile = media::VP8PROFILE_ANY; |
+ profile.min_resolution.SetSize(16, 16); |
+ profile.max_resolution.SetSize(1920, 1088); |
+ profiles.push_back(profile); |
+ return profiles; |
+} |
+ |
} // namespace content |