From a6db9c8fe9276774e3939d577c9320ad00fddd83 Mon Sep 17 00:00:00 2001 From: Taylor Brandstetter Date: Mon, 24 Feb 2020 16:40:12 -0800 Subject: [PATCH] Rename NetworkPriority to just Priority This matches the web API more, since the equivalent type there is named RTCPriorityType. Bug: webrtc:5658 Change-Id: I301fed8319f7e582b558fe7cd0deee1290708c4c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/169040 Reviewed-by: Harald Alvestrand Reviewed-by: Karl Wiberg Commit-Queue: Taylor Cr-Commit-Position: refs/heads/master@{#30613} --- api/rtp_parameters.cc | 8 ++++---- api/rtp_parameters.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/rtp_parameters.cc b/api/rtp_parameters.cc index 3ca9cd38f1..f09be189eb 100644 --- a/api/rtp_parameters.cc +++ b/api/rtp_parameters.cc @@ -19,10 +19,10 @@ namespace webrtc { const double kDefaultBitratePriority = 1.0; -const double NetworkPriority::kVeryLow = 0.5; -const double NetworkPriority::kLow = 1.0; -const double NetworkPriority::kMedium = 2.0; -const double NetworkPriority::kHigh = 4.0; +const double Priority::kVeryLow = 0.5; +const double Priority::kLow = 1.0; +const double Priority::kMedium = 2.0; +const double Priority::kHigh = 4.0; RtcpFeedback::RtcpFeedback() = default; RtcpFeedback::RtcpFeedback(RtcpFeedbackType type) : type(type) {} diff --git a/api/rtp_parameters.h b/api/rtp_parameters.h index 94ce00d916..d9d4d5afa5 100644 --- a/api/rtp_parameters.h +++ b/api/rtp_parameters.h @@ -92,7 +92,7 @@ enum class DegradationPreference { RTC_EXPORT extern const double kDefaultBitratePriority; // TODO(deadbeef): Switch to an enum class. -struct RTC_EXPORT NetworkPriority { +struct RTC_EXPORT Priority { static const double kVeryLow; static const double kLow; static const double kMedium; @@ -401,7 +401,7 @@ struct RTC_EXPORT RtpEncodingParameters { // we follow chromium's translation of the allowed string enum values for // this field to 1.0, 0.5, et cetera, similar to bitrate_priority above. // TODO(http://crbug.com/webrtc/8630): Implement this per encoding parameter. - double network_priority = NetworkPriority::kLow; + double network_priority = Priority::kLow; // If set, this represents the Transport Independent Application Specific // maximum bandwidth defined in RFC3890. If unset, there is no maximum