#include "third_party/blink/renderer/platform/scheduler/main_thread/idle_time_estimator.h"
#include "base/time/default_tick_clock.h"
namespace blink {
namespace scheduler {
IdleTimeEstimator::IdleTimeEstimator(const base::TickClock* time_source,
int sample_count,
double estimation_percentile)
: … { … }
IdleTimeEstimator::~IdleTimeEstimator() = default;
base::TimeDelta IdleTimeEstimator::GetExpectedIdleDuration(
base::TimeDelta compositor_frame_interval) const { … }
void IdleTimeEstimator::DidCommitFrameToCompositor() { … }
void IdleTimeEstimator::Clear() { … }
void IdleTimeEstimator::WillProcessTask(const base::PendingTask& pending_task,
bool was_blocked_or_low_priority) { … }
void IdleTimeEstimator::DidProcessTask(const base::PendingTask& pending_task) { … }
void IdleTimeEstimator::AddCompositorTaskQueue(
scoped_refptr<MainThreadTaskQueue> compositor_task_queue) { … }
void IdleTimeEstimator::RemoveCompositorTaskQueue(
scoped_refptr<MainThreadTaskQueue> compositor_task_queue) { … }
}
}