This reverts commit 24eed2735b2135227bcfefbabf34a89f9a5fec99. Reason for revert: Speculative revert: breaks downstream project Original change's description: > Preparation for ReceiveStatisticsProxy lock reduction. > > Update tests to call VideoReceiveStream::GetStats() in the same or at > least similar way it gets called in production (construction thread, > same TQ/thread). > > Mapped out threads and context for ReceiveStatisticsProxy, > VideoQualityObserver and VideoReceiveStream. Added > follow-up TODOs for webrtc:11489. > > One functional change in ReceiveStatisticsProxy is that when sender > side RtcpPacketTypesCounterUpdated calls are made, the counter is > updated asynchronously since the sender calls the method on a different > thread than the receiver. > > Make CallClient::SendTask public to allow tests to run tasks in the > right context. CallClient already does this internally for GetStats. > > Remove 10 sec sleep in StopSendingKeyframeRequestsForInactiveStream. > > Bug: webrtc:11489 > Change-Id: Ib45bfc59d8472e9c5ea556e6ecf38298b8f14921 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/172847 > Commit-Queue: Tommi <tommi@webrtc.org> > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> > Reviewed-by: Magnus Flodman <mflodman@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#31008} TBR=mbonadei@webrtc.org,henrika@webrtc.org,kwiberg@webrtc.org,tommi@webrtc.org,juberti@webrtc.org,mflodman@webrtc.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: webrtc:11489 Change-Id: I48b8359cdb791bf22b1a2c2c43d46263b01e0d65 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/173082 Reviewed-by: Artem Titov <titovartem@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31023}
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
# Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
import("../../webrtc.gni")
|
|
|
|
rtc_library("repeating_task") {
|
|
sources = [
|
|
"repeating_task.cc",
|
|
"repeating_task.h",
|
|
]
|
|
deps = [
|
|
":to_queued_task",
|
|
"..:logging",
|
|
"..:thread_checker",
|
|
"..:timeutils",
|
|
"../../api/task_queue",
|
|
"../../api/units:time_delta",
|
|
"../../api/units:timestamp",
|
|
"../synchronization:sequence_checker",
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
]
|
|
}
|
|
|
|
rtc_source_set("to_queued_task") {
|
|
sources = [ "to_queued_task.h" ]
|
|
deps = [ "../../api/task_queue" ]
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_library("repeating_task_unittests") {
|
|
testonly = true
|
|
sources = [ "repeating_task_unittest.cc" ]
|
|
deps = [
|
|
":repeating_task",
|
|
"..:rtc_base_approved",
|
|
"..:rtc_task_queue",
|
|
"..:task_queue_for_test",
|
|
"../../test:test_support",
|
|
]
|
|
}
|
|
|
|
rtc_library("to_queued_task_unittests") {
|
|
testonly = true
|
|
sources = [ "to_queued_task_unittest.cc" ]
|
|
deps = [
|
|
":to_queued_task",
|
|
"../../api/task_queue",
|
|
"../../test:test_support",
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
]
|
|
}
|
|
}
|