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

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

Issue 2549283002: Android: enable WebRTC HW H264 with a flag by default (Closed)
Patch Set: rename to kDisableWebRtcHWVP8Encoding 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
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5d77e94bcd1d6afc57f2f1d61e40a457cf5fe86c 100644
--- a/content/public/browser/gpu_utils.cc
+++ b/content/public/browser/gpu_utils.cc
@@ -46,9 +46,7 @@ const gpu::GpuPreferences GetGpuPreferencesFromCommandLine() {
#endif
#if BUILDFLAG(ENABLE_WEBRTC)
gpu_preferences.disable_web_rtc_hw_encoding =
piman 2016/12/07 19:16:33 nit: update the name of this field too, to accurat
braveyao 2016/12/07 20:29:53 It's better to keep it as is. Because either VP8 o
piman 2016/12/07 20:35:33 The logic here is wrong then. If H264 HW encoding
braveyao 2016/12/07 21:34:02 Thanks so much! I neglected that case... Done.
- command_line->HasSwitch(switches::kDisableWebRtcHWEncoding) &&
- command_line->GetSwitchValueASCII(switches::kDisableWebRtcHWEncoding)
- .empty();
+ command_line->HasSwitch(switches::kDisableWebRtcHWVP8Encoding);
#endif
#if defined(OS_WIN)
uint32_t enable_accelerated_vpx_decode_val =
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698