From 96cc37bc02d9f6a2c4376b437435ffb92ea9e2c6 Mon Sep 17 00:00:00 2001 From: qiangchen Date: Wed, 29 Jul 2015 13:55:18 -0700 Subject: Make a flag enable-rtc-smoothness-algorithm for the new rendering algorithm. BUG=514873 Review URL: https://codereview.chromium.org/1261633003 Cr-Commit-Position: refs/heads/master@{#340979} --- content/browser/renderer_host/render_process_host_impl.cc | 1 + media/base/media_switches.cc | 4 ++++ media/base/media_switches.h | 2 ++ 3 files changed, 7 insertions(+) diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc index 4666d75..79f1c3c 100644 --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc @@ -1287,6 +1287,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( switches::kEnablePreferCompositingToLCDText, switches::kEnablePushMessagePayload, switches::kEnableRendererMojoChannel, + switches::kEnableRTCSmoothnessAlgorithm, switches::kEnableSeccompFilterSandbox, switches::kEnableSkiaBenchmarking, switches::kEnableSlimmingPaint, diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc index 4d2128c..fb2363b 100644 --- a/media/base/media_switches.cc +++ b/media/base/media_switches.cc @@ -119,4 +119,8 @@ const char kRequireAudioHardwareForTesting[] = // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms"; +// Use the new rendering algorithm for webrtc, which is designed to improve +// smoothness. +const char kEnableRTCSmoothnessAlgorithm[] = "enable-rtc-smoothness-algorithm"; + } // namespace switches diff --git a/media/base/media_switches.h b/media/base/media_switches.h index c8c8488..a5a4095 100644 --- a/media/base/media_switches.h +++ b/media/base/media_switches.h @@ -59,6 +59,8 @@ MEDIA_EXPORT extern const char kRequireAudioHardwareForTesting[]; MEDIA_EXPORT extern const char kVideoUnderflowThresholdMs[]; +MEDIA_EXPORT extern const char kEnableRTCSmoothnessAlgorithm[]; + } // namespace switches #endif // MEDIA_BASE_MEDIA_SWITCHES_H_ -- cgit v1.1