Chromium Code Reviews| Index: media/filters/gpu_video_decoder.cc |
| diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc |
| index 6842e4d7c59a4797c6c373f5916ad1c30feb357a..e3a11c3fc1be86c5a9b7fc17b2a19728a2f8aa73 100644 |
| --- a/media/filters/gpu_video_decoder.cc |
| +++ b/media/filters/gpu_video_decoder.cc |
| @@ -8,6 +8,7 @@ |
| #include "base/bind.h" |
| #include "base/callback_helpers.h" |
| +#include "base/command_line.h" |
| #include "base/cpu.h" |
| #include "base/message_loop/message_loop.h" |
| #include "base/metrics/histogram.h" |
| @@ -18,6 +19,7 @@ |
| #include "media/base/bind_to_current_loop.h" |
| #include "media/base/decoder_buffer.h" |
| #include "media/base/media_log.h" |
| +#include "media/base/media_switches.h" |
| #include "media/base/pipeline.h" |
| #include "media/base/pipeline_status.h" |
| #include "media/base/video_decoder_config.h" |
| @@ -120,9 +122,13 @@ static bool IsCodedSizeSupported(const gfx::Size& coded_size) { |
| if (coded_size.width() <= 1920 && coded_size.height() <= 1088) |
| return true; |
| + // NOTE: additional autodetection logic may require updating input buffer size |
| + // selection in V4L2VideoDecodeAccelerator. |
|
Ami GONE FROM CHROMIUM
2014/05/19 18:42:43
s/in/in platform-specific implementations, such as
|
| base::CPU cpu; |
| bool hw_large_video_support = |
| - (cpu.vendor_name() == "GenuineIntel") && cpu.model() >= 55; |
| + CommandLine::ForCurrentProcess()->HasSwitch( |
| + switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode) || |
| + ((cpu.vendor_name() == "GenuineIntel") && cpu.model() >= 55); |
| bool os_large_video_support = true; |
| #if defined(OS_WIN) |
| os_large_video_support = false; |