Replacing SequencedTaskChecker with SequenceChecker.
Bug: webrtc:9883 Change-Id: I5e3189da2a46e6f4ed1a3c5a5dfd2f7d75a16b5d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/130961 Commit-Queue: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27518}
This commit is contained in:

committed by
Commit Bot

parent
412dc5f27e
commit
b55015e4e1
@ -44,7 +44,7 @@ LossNotificationController::LossNotificationController(
|
||||
LossNotificationController::~LossNotificationController() = default;
|
||||
|
||||
void LossNotificationController::OnReceivedPacket(const VCMPacket& packet) {
|
||||
RTC_DCHECK_CALLED_SEQUENTIALLY(&sequenced_task_checker_);
|
||||
RTC_DCHECK_RUN_ON(&sequence_checker_);
|
||||
|
||||
if (!packet.generic_descriptor) {
|
||||
RTC_LOG(LS_WARNING) << "Generic frame descriptor missing. Buggy remote? "
|
||||
@ -116,7 +116,7 @@ void LossNotificationController::OnAssembledFrame(
|
||||
uint16_t frame_id,
|
||||
bool discardable,
|
||||
rtc::ArrayView<const uint16_t> frame_dependency_diffs) {
|
||||
RTC_DCHECK_CALLED_SEQUENTIALLY(&sequenced_task_checker_);
|
||||
RTC_DCHECK_RUN_ON(&sequence_checker_);
|
||||
|
||||
DiscardOldInformation(); // Prevent memory overconsumption.
|
||||
|
||||
@ -144,7 +144,7 @@ void LossNotificationController::DiscardOldInformation() {
|
||||
bool LossNotificationController::AllDependenciesDecodable(
|
||||
int64_t unwrapped_frame_id,
|
||||
rtc::ArrayView<const uint16_t> frame_dependency_diffs) const {
|
||||
RTC_DCHECK_CALLED_SEQUENTIALLY(&sequenced_task_checker_);
|
||||
RTC_DCHECK_RUN_ON(&sequence_checker_);
|
||||
|
||||
// Due to packet reordering, frame buffering and asynchronous decoders, it is
|
||||
// infeasible to make reliable conclusions on the decodability of a frame
|
||||
@ -170,7 +170,7 @@ bool LossNotificationController::AllDependenciesDecodable(
|
||||
|
||||
void LossNotificationController::HandleLoss(uint16_t last_received_seq_num,
|
||||
bool decodability_flag) {
|
||||
RTC_DCHECK_CALLED_SEQUENTIALLY(&sequenced_task_checker_);
|
||||
RTC_DCHECK_RUN_ON(&sequence_checker_);
|
||||
|
||||
if (last_decodable_non_discardable_) {
|
||||
RTC_DCHECK(AheadOf(last_received_seq_num,
|
||||
|
Reference in New Issue
Block a user