Index: content/public/browser/gpu_utils.cc |
diff --git a/content/public/browser/gpu_utils.cc b/content/public/browser/gpu_utils.cc |
index 69acbbff2bc239b929a519e7d338541de25a6cf8..28d8c412e814fd9ffffd8a2c744a5651ce9ba54b 100644 |
--- a/content/public/browser/gpu_utils.cc |
+++ b/content/public/browser/gpu_utils.cc |
@@ -48,8 +48,14 @@ 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); |
+ uint32_t enable_accelerated_vpx_decode_val = |
+ gpu::GpuPreferences::VPX_VENDOR_NONE; |
+ if (GetUintFromSwitch(command_line, switches::kEnableAcceleratedVpxDecode, |
+ &enable_accelerated_vpx_decode_val)) { |
+ gpu_preferences.enable_accelerated_vpx_decode = |
+ static_cast<gpu::GpuPreferences::VpxDecodeVendors>( |
+ enable_accelerated_vpx_decode_val); |
+ } |
gpu_preferences.enable_zero_copy_dxgi_video = |
command_line->HasSwitch(switches::kEnableZeroCopyDxgiVideo); |
gpu_preferences.enable_nv12_dxgi_video = |