Chromium Code Reviews| Index: content/public/browser/gpu_utils.cc |
| diff --git a/content/public/browser/gpu_utils.cc b/content/public/browser/gpu_utils.cc |
| index 7c264710c9c070651eae3161b854687c511b5f89..1f6b99e7c212f280797041defe1b66d5189673be 100644 |
| --- a/content/public/browser/gpu_utils.cc |
| +++ b/content/public/browser/gpu_utils.cc |
| @@ -48,9 +48,11 @@ const gpu::GpuPreferences GetGpuPreferencesFromCommandLine() { |
| command_line->HasSwitch(switches::kDisableWebRtcHWEncoding); |
| #endif |
| #if defined(OS_WIN) |
| - gpu_preferences.enable_accelerated_vpx_decode = |
| - command_line->HasSwitch(switches::kEnableAcceleratedVpxDecode); |
| - gpu_preferences.enable_zero_copy_dxgi_video = |
| + if (!GetUintFromSwitch(command_line, switches::kEnableAcceleratedVpxDecode, |
| + &gpu_preferences.enable_accelerated_vpx_decode)) { |
| + gpu_preferences.enable_accelerated_vpx_decode = 2; |
|
jbauman
2016/06/28 20:24:22
= 0;
kplum
2016/06/28 21:35:14
I figured this would be brought up :) What would b
|
| + } |
| + gpu_preferences.enable_zero_copy_dxgi_video = |
| command_line->HasSwitch(switches::kEnableZeroCopyDxgiVideo); |
| #endif |
| gpu_preferences.compile_shader_always_succeeds = |