Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Unified Diff: content/public/browser/gpu_utils.cc

Issue 2573933002: Restore switch kDisableWebRtcHWEncoding (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) ||
+ (command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding) &&
+ !base::FeatureList::IsEnabled(features::kWebRtcHWH264Encoding));
#endif
#if defined(OS_WIN)
uint32_t enable_accelerated_vpx_decode_val =

Powered by Google App Engine
This is Rietveld 408576698