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

Unified Diff: content/common/gpu/media/android_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/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..9b01615c6978ca436d85d7387951a4a31b581ef8 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.cc
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc
@@ -554,4 +554,17 @@ void AndroidVideoDecodeAccelerator::NotifyError(
client_->NotifyError(error);
}
+// 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 Actually this is different because Initialize uses
henryhsu 2015/03/23 10:06:35 Done.
+ media::VideoDecodeAccelerator::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

Powered by Google App Engine
This is Rietveld 408576698