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

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: 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..4716da962da2f663f0276aec6a96746a40bda0d0 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"
@@ -522,8 +521,7 @@ GLRenderingVDAClient::CreateDXVAVDA() {
#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);
piman 2016/03/17 00:17:25 Aren't we removing functionality here?
Peng 2016/03/17 14:22:31 I didn't find any code sets this flag in code sear
Peng 2016/03/17 15:00:43 Or we could define a duplicated const string varia
DaleCurtis 2016/03/17 17:43:22 This was kept here to allow Intel and other manufa
DaleCurtis 2016/03/17 18:42:18 Whoops, just saw this is in the unittest. It's pro
+ const bool enable_accelerated_vpx_decode = false;
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