Index: content/public/browser/gpu_utils.cc |
diff --git a/content/public/browser/gpu_utils.cc b/content/public/browser/gpu_utils.cc |
index 7ac9c72396a2b8ba4677285c3b9dc820d2273f6b..8605b2d52b10d3dfb73b068ef24467ad417b62c0 100644 |
--- a/content/public/browser/gpu_utils.cc |
+++ b/content/public/browser/gpu_utils.cc |
@@ -6,6 +6,7 @@ |
#include "base/command_line.h" |
#include "base/strings/string_number_conversions.h" |
+#include "content/public/common/content_features.h" |
#include "content/public/common/content_switches.h" |
#include "gpu/command_buffer/service/gpu_switches.h" |
#include "gpu/config/gpu_switches.h" |
@@ -46,9 +47,8 @@ const gpu::GpuPreferences GetGpuPreferencesFromCommandLine() { |
#endif |
#if BUILDFLAG(ENABLE_WEBRTC) |
gpu_preferences.disable_web_rtc_hw_encoding = |
- command_line->HasSwitch(switches::kDisableWebRtcHWEncoding) && |
- command_line->GetSwitchValueASCII(switches::kDisableWebRtcHWEncoding) |
- .empty(); |
+ command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding) && |
+ !base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding); |
#endif |
#if defined(OS_WIN) |
uint32_t enable_accelerated_vpx_decode_val = |