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

Unified Diff: webrtc/media/engine/webrtcvideoengine2.cc

Issue 2923563002: Add field trial for balanced degradation preference. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvideoengine2_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/engine/webrtcvideoengine2.cc
diff --git a/webrtc/media/engine/webrtcvideoengine2.cc b/webrtc/media/engine/webrtcvideoengine2.cc
index 03e97f776bfe7f42a063fd8a5b53410403915f50..5dfcb729b8ef869a79aed11a91cd322835b02da9 100644
--- a/webrtc/media/engine/webrtcvideoengine2.cc
+++ b/webrtc/media/engine/webrtcvideoengine2.cc
@@ -1751,6 +1751,8 @@ WebRtcVideoChannel2::WebRtcVideoSendStream::GetDegradationPreference() const {
degradation_preference = DegradationPreference::kMaintainResolution;
} else {
degradation_preference = DegradationPreference::kMaintainFramerate;
+ if (webrtc::field_trial::IsEnabled("WebRTC-Video-BalancedDegradation"))
mflodman1 2017/06/13 09:23:19 WDYT of, to avoid more nested if statements: if (
åsapersson 2017/06/13 10:17:15 Done.
+ degradation_preference = DegradationPreference::kBalanced;
}
}
return degradation_preference;
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvideoengine2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698