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

Unified Diff: content/common/gpu/media/video_decode_accelerator_unittest.cc

Issue 1805133002: Remove content switches dependency in content/common/gpu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 9 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
« no previous file with comments | « content/common/gpu/media/gpu_video_encode_accelerator.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/video_decode_accelerator_unittest.cc
diff --git a/content/common/gpu/media/video_decode_accelerator_unittest.cc b/content/common/gpu/media/video_decode_accelerator_unittest.cc
index 78ea8ba2c6d564e509b452686c0607a1b8d6ecff..fbd5fb4a5f765acd485183786ff0457bc49a68a0 100644
--- a/content/common/gpu/media/video_decode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc
@@ -49,7 +49,6 @@
#include "content/common/gpu/media/fake_video_decode_accelerator.h"
#include "content/common/gpu/media/rendering_helper.h"
#include "content/common/gpu/media/video_accelerator_unittest_helpers.h"
-#include "content/public/common/content_switches.h"
#include "media/filters/h264_parser.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/codec/png_codec.h"
@@ -521,9 +520,7 @@ GLRenderingVDAClient::CreateDXVAVDA() {
scoped_ptr<media::VideoDecodeAccelerator> decoder;
#if defined(OS_WIN)
if (base::win::GetVersion() >= base::win::VERSION_WIN7) {
- const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
- const bool enable_accelerated_vpx_decode =
- cmd_line->HasSwitch(switches::kEnableAcceleratedVpxDecode);
+ const bool enable_accelerated_vpx_decode = false;
Pawel Osciak 2016/03/18 01:56:57 Removing this may prevent us from testing this fea
Peng 2016/03/18 15:16:44 Do we need pass the --enable-accelerated-vpx-decod
decoder.reset(new DXVAVideoDecodeAccelerator(
base::Bind(&DoNothingReturnTrue),
rendering_helper_->GetGLContext().get(),
« no previous file with comments | « content/common/gpu/media/gpu_video_encode_accelerator.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698