Schedule all video decodes with high precision
Bug: chromium:1365820 Change-Id: I91ca7e42c4ce9b49f4b087b898bbfb3cc4cf2935 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/276040 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Evan Shrubsole <eshr@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38126}
This commit is contained in:
parent
275d63a13e
commit
36a6599a95
@ -45,7 +45,7 @@ void TaskQueueFrameDecodeScheduler::ScheduleFrame(
|
|||||||
|
|
||||||
TimeDelta wait = std::max(
|
TimeDelta wait = std::max(
|
||||||
TimeDelta::Zero(), schedule.latest_decode_time - clock_->CurrentTime());
|
TimeDelta::Zero(), schedule.latest_decode_time - clock_->CurrentTime());
|
||||||
bookkeeping_queue_->PostDelayedTask(
|
bookkeeping_queue_->PostDelayedHighPrecisionTask(
|
||||||
SafeTask(task_safety_.flag(),
|
SafeTask(task_safety_.flag(),
|
||||||
[this, rtp, schedule, cb = std::move(cb)]() mutable {
|
[this, rtp, schedule, cb = std::move(cb)]() mutable {
|
||||||
RTC_DCHECK_RUN_ON(bookkeeping_queue_);
|
RTC_DCHECK_RUN_ON(bookkeeping_queue_);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user