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

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

Issue 2358683002: Android: enable/disable WebRTC HW H264 with a flag. (Closed)
Patch Set: adopt enum instead and address other comments Created 4 years, 2 months 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 af52366b68bdf8e226b7cdd970ec9f9d1b342f8b..0155bb1dae33c409c4b0499a0c79a53e0f780670 100644
--- a/content/public/browser/gpu_utils.cc
+++ b/content/public/browser/gpu_utils.cc
@@ -45,7 +45,9 @@ const gpu::GpuPreferences GetGpuPreferencesFromCommandLine() {
#endif
#if defined(ENABLE_WEBRTC)
gpu_preferences.disable_web_rtc_hw_encoding =
- command_line->HasSwitch(switches::kDisableWebRtcHWEncoding);
+ command_line->HasSwitch(switches::kDisableWebRtcHWEncoding) &&
+ command_line->GetSwitchValueASCII(switches::kDisableWebRtcHWEncoding)
+ .empty();
#endif
#if defined(OS_WIN)
uint32_t enable_accelerated_vpx_decode_val =

Powered by Google App Engine
This is Rietveld 408576698