Chromium Code Reviews| Index: content/browser/gpu/gpu_data_manager_impl_private.cc |
| diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc |
| index e114814bd9f61f01e0561a54a0cdf24d1d932a41..b13edc52a9e86d141b8b51bc3405be6770912c8f 100644 |
| --- a/content/browser/gpu/gpu_data_manager_impl_private.cc |
| +++ b/content/browser/gpu/gpu_data_manager_impl_private.cc |
| @@ -776,12 +776,17 @@ void GpuDataManagerImplPrivate::AppendGpuCommandLine( |
| #if BUILDFLAG(ENABLE_WEBRTC) |
| if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) && |
| - !command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding) && |
| + !command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding)) { |
| + command_line->AppendSwitch(switches::kDisableWebRtcHWVP8Encoding); |
|
Pawel Osciak
2016/12/15 05:45:53
Could we use kDisableWebRtcHWEncoding only here, a
braveyao
2016/12/15 20:46:24
It depends on how we decide to create VEA on Andro
Pawel Osciak
2016/12/20 01:49:17
Yes, that's what should be expected from the name
braveyao
2016/12/20 19:09:14
"IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELE
Pawel Osciak
2016/12/21 01:12:57
Regardless of what system this is for, if there ar
braveyao
2016/12/21 02:01:39
Done.
GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE i
|
| + } |
| + |
| + if (!command_line->HasSwitch(switches::kDisableWebRtcHWEncoding) && |
| + command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding) && |
| !base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)) { |
| if (gpu_preferences) { |
| gpu_preferences->disable_web_rtc_hw_encoding = true; |
| } else { |
| - command_line->AppendSwitch(switches::kDisableWebRtcHWVP8Encoding); |
| + command_line->AppendSwitch(switches::kDisableWebRtcHWEncoding); |
| } |
| } |
| #endif |