Migrate pacing and video_coding to absl::AnyInvocable based TaskQueueBase interface
Bug: webrtc:14245 Change-Id: Icfab3e6548055ea72a199a226eca5233b1ead20d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/267983 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37467}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
f7b30e046e
commit
0be8eba07e
@ -15,7 +15,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "api/task_queue/to_queued_task.h"
|
||||
#include "api/video/video_adaptation_reason.h"
|
||||
#include "api/video_codecs/video_encoder.h"
|
||||
#include "rtc_base/checks.h"
|
||||
@ -58,7 +57,7 @@ BandwidthQualityScaler::~BandwidthQualityScaler() {
|
||||
void BandwidthQualityScaler::StartCheckForBitrate() {
|
||||
RTC_DCHECK_RUN_ON(&task_checker_);
|
||||
TaskQueueBase::Current()->PostDelayedTask(
|
||||
ToQueuedTask([this_weak_ptr = weak_ptr_factory_.GetWeakPtr(), this] {
|
||||
[this_weak_ptr = weak_ptr_factory_.GetWeakPtr(), this] {
|
||||
if (!this_weak_ptr) {
|
||||
// The caller BandwidthQualityScaler has been deleted.
|
||||
return;
|
||||
@ -84,8 +83,8 @@ void BandwidthQualityScaler::StartCheckForBitrate() {
|
||||
}
|
||||
}
|
||||
StartCheckForBitrate();
|
||||
}),
|
||||
kBitrateStateUpdateInterval.ms());
|
||||
},
|
||||
kBitrateStateUpdateInterval);
|
||||
}
|
||||
|
||||
void BandwidthQualityScaler::ReportEncodeInfo(int frame_size_bytes,
|
||||
|
||||
Reference in New Issue
Block a user