Fix parameter types inconsistency in FrameCadanceAdapter

Bug: chromium:1255737
Change-Id: Id448a9176020f7f88eb767036b67ca884bdbd472
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/328520
Reviewed-by: Markus Handell <handellm@webrtc.org>
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41232}
This commit is contained in:
Ilya Nikolaevskiy 2023-11-24 13:01:21 +01:00 committed by WebRTC LUCI CQ
parent 15c04f98e9
commit 7a841ce116

View file

@ -252,7 +252,7 @@ class FrameCadenceAdapterImpl : public FrameCadenceAdapterInterface {
private: private:
// Called from OnFrame in both pass-through and zero-hertz mode. // Called from OnFrame in both pass-through and zero-hertz mode.
void OnFrameOnMainQueue(Timestamp post_time, void OnFrameOnMainQueue(Timestamp post_time,
int frames_scheduled_for_processing, bool queue_overload,
const VideoFrame& frame) RTC_RUN_ON(queue_); const VideoFrame& frame) RTC_RUN_ON(queue_);
// Returns true under all of the following conditions: // Returns true under all of the following conditions:
@ -719,13 +719,11 @@ void FrameCadenceAdapterImpl::OnConstraintsChanged(
})); }));
} }
void FrameCadenceAdapterImpl::OnFrameOnMainQueue( void FrameCadenceAdapterImpl::OnFrameOnMainQueue(Timestamp post_time,
Timestamp post_time, bool queue_overload,
int frames_scheduled_for_processing, const VideoFrame& frame) {
const VideoFrame& frame) {
RTC_DCHECK_RUN_ON(queue_); RTC_DCHECK_RUN_ON(queue_);
current_adapter_mode_->OnFrame(post_time, frames_scheduled_for_processing, current_adapter_mode_->OnFrame(post_time, queue_overload, frame);
frame);
} }
bool FrameCadenceAdapterImpl::IsZeroHertzScreenshareEnabled() const { bool FrameCadenceAdapterImpl::IsZeroHertzScreenshareEnabled() const {