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

Unified Diff: webrtc/api/webrtcsession.cc

Issue 1670153003: Introduce struct MediaConfig, with construction-time settings. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed test nit; use reference. Created 4 years, 10 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 | « webrtc/api/statscollector_unittest.cc ('k') | webrtc/api/webrtcsession_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/webrtcsession.cc
diff --git a/webrtc/api/webrtcsession.cc b/webrtc/api/webrtcsession.cc
index 56bea6403d7a295bc7382c2c8c11b2fa25bb7d4e..c693cb1077ee6e1d072bfd9a1308ad1175b6350e 100644
--- a/webrtc/api/webrtcsession.cc
+++ b/webrtc/api/webrtcsession.cc
@@ -584,8 +584,6 @@ bool WebRtcSession::Initialize(
const PeerConnectionInterface::RTCConfiguration& rtc_configuration) {
bundle_policy_ = rtc_configuration.bundle_policy;
rtcp_mux_policy_ = rtc_configuration.rtcp_mux_policy;
- video_options_.disable_prerenderer_smoothing =
- rtc::Optional<bool>(rtc_configuration.disable_prerenderer_smoothing);
transport_controller_->SetSslMaxProtocolVersion(options.ssl_max_version);
// Obtain a certificate from RTCConfiguration if any were provided (optional).
@@ -632,15 +630,6 @@ bool WebRtcSession::Initialize(
}
}
- // Find DSCP constraint.
- if (FindConstraint(
- constraints,
- MediaConstraintsInterface::kEnableDscp,
- &value, NULL)) {
- audio_options_.dscp = rtc::Optional<bool>(value);
- video_options_.dscp = rtc::Optional<bool>(value);
- }
-
// Find Suspend Below Min Bitrate constraint.
if (FindConstraint(
constraints,
@@ -654,11 +643,6 @@ bool WebRtcSession::Initialize(
MediaConstraintsInterface::kScreencastMinBitrate,
&video_options_.screencast_min_bitrate_kbps);
- // Find constraints for cpu overuse detection.
- SetOptionFromOptionalConstraint(constraints,
- MediaConstraintsInterface::kCpuOveruseDetection,
- &video_options_.cpu_overuse_detection);
-
SetOptionFromOptionalConstraint(constraints,
MediaConstraintsInterface::kCombinedAudioVideoBwe,
&audio_options_.combined_audio_video_bwe);
« no previous file with comments | « webrtc/api/statscollector_unittest.cc ('k') | webrtc/api/webrtcsession_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698