Fix circular dependency in BWE code.
Bug: webrtc:6828 Change-Id: I531ee5dea41140f085d82641253fadb9e997a378 Reviewed-on: https://webrtc-review.googlesource.com/34641 Reviewed-by: Stefan Holmer <stefan@webrtc.org> Commit-Queue: Patrik Höglund <phoglund@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21350}
This commit is contained in:
committed by
Commit Bot
parent
d75c8dcde9
commit
08279b5cf5
@ -9,11 +9,6 @@
|
||||
import("../../webrtc.gni")
|
||||
|
||||
rtc_static_library("bitrate_controller") {
|
||||
# TODO(mbonadei): Remove (bugs.webrtc.org/6828)
|
||||
# Errors on cyclic dependency with:
|
||||
# congestion_controller:congestion_controller if enabled.
|
||||
check_includes = false
|
||||
|
||||
sources = [
|
||||
"bitrate_controller_impl.cc",
|
||||
"bitrate_controller_impl.h",
|
||||
@ -37,9 +32,18 @@ rtc_static_library("bitrate_controller") {
|
||||
}
|
||||
|
||||
deps = [
|
||||
"..:module_api",
|
||||
"../../logging:rtc_event_log_api",
|
||||
"../../rtc_base:checks",
|
||||
"../../rtc_base:rtc_base_approved",
|
||||
"../../system_wrappers",
|
||||
"../../system_wrappers:field_trial_api",
|
||||
"../../system_wrappers:metrics_api",
|
||||
"../congestion_controller:delay_based_bwe",
|
||||
"../pacing",
|
||||
"../remote_bitrate_estimator:remote_bitrate_estimator",
|
||||
"../rtp_rtcp",
|
||||
"../rtp_rtcp:rtp_rtcp_format",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@ -8,55 +8,40 @@
|
||||
|
||||
import("../../webrtc.gni")
|
||||
|
||||
config("bwe_test_logging") {
|
||||
if (rtc_enable_bwe_test_logging) {
|
||||
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
|
||||
} else {
|
||||
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
|
||||
}
|
||||
}
|
||||
|
||||
rtc_static_library("congestion_controller") {
|
||||
configs += [ ":bwe_test_logging" ]
|
||||
sources = [
|
||||
"acknowledged_bitrate_estimator.cc",
|
||||
"acknowledged_bitrate_estimator.h",
|
||||
"bitrate_estimator.cc",
|
||||
"bitrate_estimator.h",
|
||||
"delay_based_bwe.cc",
|
||||
"delay_based_bwe.h",
|
||||
"include/receive_side_congestion_controller.h",
|
||||
"include/send_side_congestion_controller.h",
|
||||
"median_slope_estimator.cc",
|
||||
"median_slope_estimator.h",
|
||||
"probe_bitrate_estimator.cc",
|
||||
"probe_bitrate_estimator.h",
|
||||
"probe_controller.cc",
|
||||
"probe_controller.h",
|
||||
"receive_side_congestion_controller.cc",
|
||||
"send_side_congestion_controller.cc",
|
||||
"transport_feedback_adapter.cc",
|
||||
"transport_feedback_adapter.h",
|
||||
"trendline_estimator.cc",
|
||||
"trendline_estimator.h",
|
||||
]
|
||||
|
||||
if (rtc_enable_bwe_test_logging) {
|
||||
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1" ]
|
||||
} else {
|
||||
defines = [ "BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0" ]
|
||||
}
|
||||
|
||||
# TODO(jschuh): Bug 1348: fix this warning.
|
||||
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
||||
|
||||
if (!build_with_chromium && is_clang) {
|
||||
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
||||
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
||||
}
|
||||
|
||||
deps = [
|
||||
":delay_based_bwe",
|
||||
":estimators",
|
||||
"..:module_api",
|
||||
"../..:webrtc_common",
|
||||
"../../:typedefs",
|
||||
"../../api:optional",
|
||||
"../../logging:rtc_event_log_api",
|
||||
"../../rtc_base:checks",
|
||||
"../../rtc_base:rate_limiter",
|
||||
"../../rtc_base:rtc_base",
|
||||
"../../rtc_base:rtc_base_approved",
|
||||
"../../rtc_base:rtc_numerics",
|
||||
"../../system_wrappers",
|
||||
"../../system_wrappers:field_trial_api",
|
||||
"../../system_wrappers:metrics_api",
|
||||
@ -64,10 +49,66 @@ rtc_static_library("congestion_controller") {
|
||||
"../pacing",
|
||||
"../remote_bitrate_estimator",
|
||||
"../rtp_rtcp:rtp_rtcp_format",
|
||||
"../utility",
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("estimators") {
|
||||
configs += [ ":bwe_test_logging" ]
|
||||
sources = [
|
||||
"acknowledged_bitrate_estimator.cc",
|
||||
"acknowledged_bitrate_estimator.h",
|
||||
"bitrate_estimator.cc",
|
||||
"bitrate_estimator.h",
|
||||
"median_slope_estimator.cc",
|
||||
"median_slope_estimator.h",
|
||||
"probe_bitrate_estimator.cc",
|
||||
"probe_bitrate_estimator.h",
|
||||
"trendline_estimator.cc",
|
||||
"trendline_estimator.h",
|
||||
]
|
||||
|
||||
if (!build_with_chromium && is_clang) {
|
||||
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
||||
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
||||
}
|
||||
|
||||
deps = [
|
||||
"../../api:optional",
|
||||
"../../logging:rtc_event_log_api",
|
||||
"../../rtc_base:checks",
|
||||
"../../rtc_base:rtc_base_approved",
|
||||
"../../rtc_base:rtc_numerics",
|
||||
"../../system_wrappers:field_trial_api",
|
||||
"../../system_wrappers:metrics_api",
|
||||
"../remote_bitrate_estimator:remote_bitrate_estimator",
|
||||
"../rtp_rtcp:rtp_rtcp_format",
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("delay_based_bwe") {
|
||||
configs += [ ":bwe_test_logging" ]
|
||||
sources = [
|
||||
"delay_based_bwe.cc",
|
||||
"delay_based_bwe.h",
|
||||
]
|
||||
deps = [
|
||||
":estimators",
|
||||
"../../:typedefs",
|
||||
"../../logging:rtc_event_log_api",
|
||||
"../../rtc_base:checks",
|
||||
"../../rtc_base:rtc_base_approved",
|
||||
"../../system_wrappers:field_trial_api",
|
||||
"../../system_wrappers:metrics_api",
|
||||
"../pacing",
|
||||
"../remote_bitrate_estimator",
|
||||
]
|
||||
|
||||
if (!build_with_chromium && is_clang) {
|
||||
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
||||
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
||||
}
|
||||
}
|
||||
|
||||
if (rtc_include_tests) {
|
||||
rtc_source_set("congestion_controller_unittests") {
|
||||
testonly = true
|
||||
@ -89,6 +130,8 @@ if (rtc_include_tests) {
|
||||
]
|
||||
deps = [
|
||||
":congestion_controller",
|
||||
":delay_based_bwe",
|
||||
":estimators",
|
||||
":mock_congestion_controller",
|
||||
"../../rtc_base:checks",
|
||||
"../../rtc_base:rtc_base",
|
||||
|
||||
@ -154,6 +154,8 @@ if (rtc_include_tests) {
|
||||
"../../voice_engine",
|
||||
"../bitrate_controller",
|
||||
"../congestion_controller",
|
||||
"../congestion_controller:delay_based_bwe",
|
||||
"../congestion_controller:estimators",
|
||||
"../pacing",
|
||||
"../rtp_rtcp",
|
||||
"../rtp_rtcp:rtp_rtcp_format",
|
||||
|
||||
@ -231,6 +231,7 @@ if (!build_with_chromium) {
|
||||
"../modules/audio_coding:ana_debug_dump_proto",
|
||||
"../modules/audio_coding:audio_network_adaptor",
|
||||
"../modules/audio_coding:neteq_tools",
|
||||
"../modules/congestion_controller:estimators",
|
||||
"../modules/rtp_rtcp:rtp_rtcp_format",
|
||||
"../rtc_base:checks",
|
||||
"../rtc_base:rtc_base_approved",
|
||||
|
||||
Reference in New Issue
Block a user