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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 285343003: Add 4k HW decode override flag and support larger bitstream buffers in V4L2VDA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« media/base/media_switches.cc ('K') | « media/base/media_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..94bbd03b7f52cf12909a2300aa31c1ac8e4d9e31 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"
@@ -122,7 +124,9 @@ static bool IsCodedSizeSupported(const gfx::Size& coded_size) {
base::CPU cpu;
bool hw_large_video_support =
- (cpu.vendor_name() == "GenuineIntel") && cpu.model() >= 55;
+ CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kForce4kAcceleratedVideoDecode) ||
+ ((cpu.vendor_name() == "GenuineIntel") && cpu.model() >= 55);
piman 2014/05/15 17:02:27 Is this in the renderer? What would happen if the
Pawel Osciak 2014/05/16 03:53:01 This gates whether a HW or SW decoder is used. It'
bool os_large_video_support = true;
#if defined(OS_WIN)
os_large_video_support = false;
« media/base/media_switches.cc ('K') | « media/base/media_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698