#include "remoting/protocol/webrtc_frame_scheduler_constant_rate.h"
#include <algorithm>
#include "base/logging.h"
#include "base/system/sys_info.h"
#include "base/time/time.h"
namespace remoting::protocol {
namespace {
base::TimeDelta GetPostTaskAdjustment() { … }
}
WebrtcFrameSchedulerConstantRate::WebrtcFrameSchedulerConstantRate()
: … { … }
WebrtcFrameSchedulerConstantRate::~WebrtcFrameSchedulerConstantRate() { … }
void WebrtcFrameSchedulerConstantRate::Start(
const base::RepeatingClosure& capture_callback) { … }
void WebrtcFrameSchedulerConstantRate::Pause(bool pause) { … }
void WebrtcFrameSchedulerConstantRate::OnFrameCaptured(
const webrtc::DesktopFrame* frame) { … }
void WebrtcFrameSchedulerConstantRate::SetMaxFramerateFps(int max_framerate) { … }
void WebrtcFrameSchedulerConstantRate::BoostCaptureRate(
base::TimeDelta capture_interval,
base::TimeDelta duration) { … }
void WebrtcFrameSchedulerConstantRate::ScheduleNextFrame() { … }
void WebrtcFrameSchedulerConstantRate::CaptureNextFrame() { … }
void WebrtcFrameSchedulerConstantRate::SetPostTaskAdjustmentForTest(
base::TimeDelta post_task_adjustment) { … }
}