| 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 96c815d5bcaca790c095630fc74829ae033ce358..d31867e9a41b25acba5ca645e72e784429ee42e0 100644
|
| --- a/content/common/gpu/media/v4l2_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/media/v4l2_video_decode_accelerator.cc
|
| @@ -445,6 +445,21 @@ void V4L2VideoDecodeAccelerator::Destroy() {
|
|
|
| bool V4L2VideoDecodeAccelerator::CanDecodeOnIOThread() { return true; }
|
|
|
| +// static
|
| +media::VideoDecodeAccelerator::SupportedResolution
|
| +V4L2VideoDecodeAccelerator::GetSupportedResolution() {
|
| + // NOTE: additional autodetection logic may require updating input buffer size
|
| + // selection.
|
| + media::VideoDecodeAccelerator::SupportedResolution resolution;
|
| + resolution.min.SetSize(16, 16);
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode))
|
| + resolution.max.SetSize(4096, 2160);
|
| + else
|
| + resolution.max.SetSize(1920, 1088);
|
| + return resolution;
|
| +}
|
| +
|
| void V4L2VideoDecodeAccelerator::DecodeTask(
|
| const media::BitstreamBuffer& bitstream_buffer) {
|
| DVLOG(3) << "DecodeTask(): input_id=" << bitstream_buffer.id();
|
|
|