The new interface uses optionals instead of default values, and only values that are actually used are included. To make it easy to add/remove stats in the future, the struct itself is copied around on all layers, instead of copying the values one by one. This CL also fixes a bug which caused several APM statistics to get stuck at a fixed level when there are no more receive streams (after some period where there were receive streams). Since APM doesn't know this happens, an argument was added to the GetStats call to pass this information down to APM. Bug: webrtc:8563, b/67926135 Change-Id: I96cc008353355bb520c4523f5c5379860f73ee24 Reviewed-on: https://webrtc-review.googlesource.com/25621 Commit-Queue: Ivo Creusen <ivoc@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20877}
47 lines
1.3 KiB
Python
47 lines
1.3 KiB
Python
include_rules = [
|
|
"+third_party/libyuv",
|
|
"+common_video",
|
|
"+media",
|
|
"+p2p",
|
|
"+pc",
|
|
]
|
|
|
|
specific_include_rules = {
|
|
"peerconnection_jni\.cc": [
|
|
"+voice_engine",
|
|
],
|
|
|
|
# TODO(ossu): Remove this exception when {builtin_,}audio_encoder_factory.h
|
|
# has moved to api/.
|
|
"peerconnectioninterface\.h": [
|
|
"+call/callfactoryinterface.h",
|
|
"+logging/rtc_event_log/rtc_event_log_factory_interface.h",
|
|
"+modules/audio_coding/codecs/audio_encoder_factory.h",
|
|
"+modules/audio_coding/codecs/builtin_audio_encoder_factory.h",
|
|
],
|
|
|
|
# Needed because AudioEncoderOpus is in the wrong place for
|
|
# backwards compatibilty reasons. See
|
|
# https://bugs.chromium.org/p/webrtc/issues/detail?id=7847
|
|
"audio_encoder_opus\.h": [
|
|
"+modules/audio_coding/codecs/opus/audio_encoder_opus.h",
|
|
],
|
|
|
|
# We allow .cc files in webrtc/api/ to #include a bunch of stuff
|
|
# that's off-limits for the .h files. That's because .h files leak
|
|
# their #includes to whoever's #including them, but .cc files do not
|
|
# since no one #includes them.
|
|
".*\.cc": [
|
|
"+modules/audio_coding",
|
|
],
|
|
|
|
".*i420_buffer\.h": [
|
|
"+system_wrappers/include/aligned_malloc.h",
|
|
],
|
|
|
|
# Needed to use the APM statistics.
|
|
"mediastreaminterface.h": [
|
|
"+modules/audio_processing/include/audio_processing_statistics.h",
|
|
],
|
|
}
|