| Index: content/common/gpu/media/v4l2_video_decode_accelerator.cc
|
| diff --git a/content/common/gpu/media/v4l2_video_decode_accelerator.cc b/content/common/gpu/media/v4l2_video_decode_accelerator.cc
|
| index 243fee58d2e4fcfccdb336c68fbc8ae54a066352..4c4e8d87ecebd7557bcb12acad657cf62315dd20 100644
|
| --- a/content/common/gpu/media/v4l2_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/v4l2_video_decode_accelerator.cc
|
| @@ -205,6 +205,23 @@ V4L2VideoDecodeAccelerator::~V4L2VideoDecodeAccelerator() {
|
| DCHECK(output_buffer_map_.empty());
|
| }
|
|
|
| +// static
|
| +std::vector<media::VideoDecodeAccelerator::SupportedProfile>
|
| +V4L2VideoDecodeAccelerator::GetSupportedProfiles() {
|
| + std::vector<SupportedProfile> profiles;
|
| + SupportedProfile profile;
|
| + profile.min_resolution.SetSize(1, 1);
|
| + // NOTE: additional autodetection logic may require updating input buffer size
|
| + // selection in platform-specific implementations, such as
|
| + // V4L2VideoDecodeAccelerator.
|
| + profile.max_resolution.SetSize(1920, 1088);
|
| + profile.profile = media::VP8PROFILE_ANY;
|
| + profiles.push_back(profile);
|
| + profile.profile = media::H264PROFILE_MAIN;
|
| + profiles.push_back(profile);
|
| + return profiles;
|
| +}
|
| +
|
| bool V4L2VideoDecodeAccelerator::Initialize(media::VideoCodecProfile profile,
|
| Client* client) {
|
| DVLOG(3) << "Initialize()";
|
|
|