Index: content/common/gpu/media/gpu_video_encode_accelerator.cc |
diff --git a/content/common/gpu/media/gpu_video_encode_accelerator.cc b/content/common/gpu/media/gpu_video_encode_accelerator.cc |
index 52ecab8e7242cee90523859ad17c84f8691152e5..57aba03d3936380a78c986b8b80250787183c5df 100644 |
--- a/content/common/gpu/media/gpu_video_encode_accelerator.cc |
+++ b/content/common/gpu/media/gpu_video_encode_accelerator.cc |
@@ -192,7 +192,7 @@ void GpuVideoEncodeAccelerator::CreateEncoder() { |
encoder_.reset(new V4L2VideoEncodeAccelerator(device.Pass())); |
#elif defined(ARCH_CPU_X86_FAMILY) |
const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); |
- if (cmd_line->HasSwitch(switches::kEnableVaapiAcceleratedVideoEncode)) |
+ if (!cmd_line->HasSwitch(switches::kDisableVaapiAcceleratedVideoEncode)) |
encoder_.reset(new VaapiVideoEncodeAccelerator(gfx::GetXDisplay())); |
#endif |
#elif defined(OS_ANDROID) && defined(ENABLE_WEBRTC) |