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

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

Issue 568413002: Add VEA supported profiles to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address piman's comment -- create codecs_ lazily Created 6 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
Index: content/common/gpu/media/v4l2_video_encode_accelerator.cc
diff --git a/content/common/gpu/media/v4l2_video_encode_accelerator.cc b/content/common/gpu/media/v4l2_video_encode_accelerator.cc
index 1f10e840bf662f7dbcb981213726ebb31c480f11..4581518b236b966b6696185ac8d00417ad584300 100644
--- a/content/common/gpu/media/v4l2_video_encode_accelerator.cc
+++ b/content/common/gpu/media/v4l2_video_encode_accelerator.cc
@@ -280,7 +280,6 @@ void V4L2VideoEncodeAccelerator::Destroy() {
delete this;
}
-// static
std::vector<media::VideoEncodeAccelerator::SupportedProfile>
V4L2VideoEncodeAccelerator::GetSupportedProfiles() {
std::vector<SupportedProfile> profiles;
@@ -290,14 +289,14 @@ V4L2VideoEncodeAccelerator::GetSupportedProfiles() {
if (cmd_line->HasSwitch(switches::kEnableWebRtcHWVp8Encoding)) {
profile.profile = media::VP8PROFILE_ANY;
profile.max_resolution.SetSize(1920, 1088);
- profile.max_framerate.numerator = 30;
- profile.max_framerate.denominator = 1;
+ profile.max_framerate_numerator = 30;
+ profile.max_framerate_denominator = 1;
profiles.push_back(profile);
} else {
profile.profile = media::H264PROFILE_MAIN;
profile.max_resolution.SetSize(1920, 1088);
- profile.max_framerate.numerator = 30;
- profile.max_framerate.denominator = 1;
+ profile.max_framerate_numerator = 30;
+ profile.max_framerate_denominator = 1;
profiles.push_back(profile);
}

Powered by Google App Engine
This is Rietveld 408576698