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

Unified Diff: content/common/gpu/media/v4l2_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: address patch set 9 review comments Created 6 years 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_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..2a71285f0df7dcda2676eb10e8ef662cc2b1bf0b 100644
--- a/content/common/gpu/media/v4l2_video_decode_accelerator.cc
+++ b/content/common/gpu/media/v4l2_video_decode_accelerator.cc
@@ -451,6 +451,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();

Powered by Google App Engine
This is Rietveld 408576698