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

Unified Diff: content/common/gpu/media/vt_video_decode_accelerator.cc

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add GetSupportedProfile to all platforms Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/vt_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/vt_video_decode_accelerator.cc b/content/common/gpu/media/vt_video_decode_accelerator.cc
index 75844ee0536f5f1417820a9ea36f562b0262a526..d61f515e5cba4b3788c94ac6c7846fd5543febc1 100644
--- a/content/common/gpu/media/vt_video_decode_accelerator.cc
+++ b/content/common/gpu/media/vt_video_decode_accelerator.cc
@@ -1054,4 +1054,24 @@ bool VTVideoDecodeAccelerator::CanDecodeOnIOThread() {
return false;
}
+// static
+std::vector<media::VideoDecodeAccelerator::SupportedProfile>
+VTVideoDecodeAccelerator::GetSupportedProfiles() {
+ std::vector<media::VideoDecodeAccelerator::SupportedProfile> profiles;
+ // Supported media profiles should be synced with Initialize function.
wuchengli 2015/03/23 08:28:08 Like I said in android_video_decode_accelerator.cc
henryhsu 2015/03/23 10:06:35 Done.
+ for (uint32 media_profile = media::H264PROFILE_MIN;
+ media_profile <= media::H264PROFILE_MAX; ++media_profile) {
+ if (media_profile == media::H264PROFILE_HIGH422PROFILE ||
+ media_profile == media::H264PROFILE_HIGH444PREDICTIVEPROFILE) {
+ continue;
+ }
+ media::VideoDecodeAccelerator::SupportedProfile profile;
+ profile.profile = media_profile;
+ profile.min_resolution.SetSize(480, 360);
+ profile.max_resolution.SetSize(4096, 2160);
+ profiles.push_back(profile);
+ }
+ return profiles;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698