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

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

Issue 2573933002: Restore switch kDisableWebRtcHWEncoding (Closed)
Patch Set: check kDisableWebRtcHWEncoding only at creating encoder_factory 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) ||
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 =

Powered by Google App Engine
This is Rietveld 408576698