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 8605b2d52b10d3dfb73b068ef24467ad417b62c0..19c6ab65d6297bbf6eeca200f23bed8e0e7037a0 100644 |
| --- a/content/public/browser/gpu_utils.cc |
| +++ b/content/public/browser/gpu_utils.cc |
| @@ -47,8 +47,9 @@ const gpu::GpuPreferences GetGpuPreferencesFromCommandLine() { |
| #endif |
| #if BUILDFLAG(ENABLE_WEBRTC) |
| gpu_preferences.disable_web_rtc_hw_encoding = |
| - command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding) && |
| - !base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding); |
| + command_line->HasSwitch(switches::kDisableWebRtcHWEncoding) || |
|
Pawel Osciak
2016/12/15 05:45:53
Could we keep only kDisableWebRtcHWEncoding here a
braveyao
2016/12/15 20:46:24
Probably we can. The consequence, as I mentioned y
Pawel Osciak
2016/12/20 01:49:17
These switches control not only Android. VP8 encod
braveyao
2016/12/20 19:09:14
Again on CrOS, nothing is changed. You control wit
|
| + (command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding) && |
| + !base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding)); |
| #endif |
| #if defined(OS_WIN) |
| uint32_t enable_accelerated_vpx_decode_val = |