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 83ef7cac45db21659575c4acf55ac4562c748e8d..5229871f27b932fafde80f53a3a34871eab8efac 100644 |
| --- a/content/browser/gpu/gpu_data_manager_impl_private.cc |
| +++ b/content/browser/gpu/gpu_data_manager_impl_private.cc |
| @@ -778,12 +778,15 @@ void GpuDataManagerImplPrivate::AppendGpuCommandLine( |
| #if BUILDFLAG(ENABLE_WEBRTC) |
| if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_ENCODE) && |
|
Pawel Osciak
2017/01/11 09:55:35
Sorry, I'm confused by the intended logic of this
braveyao
2017/01/11 20:46:06
First of all, now the blacklist is temporarily for
|
| - !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->HasSwitch(switches::kDisableWebRtcHWVP8Encoding)) { |
| + command_line->AppendSwitch(switches::kDisableWebRtcHWVP8Encoding); |
| + |
| + if (!base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)) { |
| + if (gpu_preferences) { |
| + gpu_preferences->disable_web_rtc_hw_encoding = true; |
| + } else if (!command_line->HasSwitch(switches::kDisableWebRtcHWEncoding)) { |
| + command_line->AppendSwitch(switches::kDisableWebRtcHWEncoding); |
| + } |
| } |
| } |
| #endif |