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..73e9639ab3e7dacf773ccbd53997ad8fedf0652d 100644 |
--- a/content/public/browser/gpu_utils.cc |
+++ b/content/public/browser/gpu_utils.cc |
@@ -48,8 +48,13 @@ const gpu::GpuPreferences GetGpuPreferencesFromCommandLine() { |
command_line->HasSwitch(switches::kDisableWebRtcHWEncoding); |
#endif |
#if defined(OS_WIN) |
+ uint32_t enable_accelerated_vpx_decode_val = |
+ gpu::GpuPreferences::VPX_VENDOR_NONE; |
+ GetUintFromSwitch(command_line, switches::kEnableAcceleratedVpxDecode, |
DaleCurtis
2016/07/07 20:30:16
This returns a boolean value that should be checke
|
+ &enable_accelerated_vpx_decode_val); |
gpu_preferences.enable_accelerated_vpx_decode = |
- command_line->HasSwitch(switches::kEnableAcceleratedVpxDecode); |
+ static_cast<gpu::GpuPreferences::VpxDecodeVendors> |
+ (enable_accelerated_vpx_decode_val); |
gpu_preferences.enable_zero_copy_dxgi_video = |
command_line->HasSwitch(switches::kEnableZeroCopyDxgiVideo); |
#endif |