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

Unified Diff: content/renderer/pepper/video_encoder_shim.cc

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error Created 5 years, 8 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
« no previous file with comments | « content/renderer/pepper/video_encoder_shim.h ('k') | gpu/config/gpu_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/video_encoder_shim.cc
diff --git a/content/renderer/pepper/video_encoder_shim.cc b/content/renderer/pepper/video_encoder_shim.cc
index a89f18c719965061fcf6f5b98ea87bf1693642f8..8866fae0f623b05017506ced298afe0fe013736e 100644
--- a/content/renderer/pepper/video_encoder_shim.cc
+++ b/content/renderer/pepper/video_encoder_shim.cc
@@ -178,14 +178,14 @@ VideoEncoderShim::~VideoEncoderShim() {
base::Owned(encoder_impl_.release())));
}
-std::vector<media::VideoEncodeAccelerator::SupportedProfile>
+media::VideoEncodeAccelerator::SupportedProfiles
VideoEncoderShim::GetSupportedProfiles() {
- media::VideoEncodeAccelerator::SupportedProfile profile = {
- media::VP8PROFILE_ANY,
- gfx::Size(kMaxWidth, kMaxHeight),
- media::cast::kDefaultMaxFrameRate,
- 1};
- std::vector<media::VideoEncodeAccelerator::SupportedProfile> profiles;
+ media::VideoEncodeAccelerator::SupportedProfile profile;
+ profile.profile = media::VP8PROFILE_ANY;
+ profile.max_resolution = gfx::Size(kMaxWidth, kMaxHeight);
+ profile.max_framerate_numerator = media::cast::kDefaultMaxFrameRate;
+ profile.max_framerate_denominator = 1;
+ media::VideoEncodeAccelerator::SupportedProfiles profiles;
profiles.push_back(profile);
return profiles;
}
« no previous file with comments | « content/renderer/pepper/video_encoder_shim.h ('k') | gpu/config/gpu_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698