#include "third_party/blink/renderer/platform/scheduler/common/throttling/wake_up_budget_pool.h"
#include <algorithm>
#include <cstdint>
#include "third_party/blink/renderer/platform/scheduler/common/throttling/task_queue_throttler.h"
#include "third_party/blink/renderer/platform/scheduler/common/tracing_helper.h"
namespace blink {
namespace scheduler {
TaskQueue;
WakeUpBudgetPool::WakeUpBudgetPool(const char* name)
: … { … }
WakeUpBudgetPool::~WakeUpBudgetPool() = default;
QueueBlockType WakeUpBudgetPool::GetBlockType() const { … }
void WakeUpBudgetPool::SetWakeUpInterval(base::TimeTicks now,
base::TimeDelta interval) { … }
void WakeUpBudgetPool::SetWakeUpDuration(base::TimeDelta duration) { … }
void WakeUpBudgetPool::AllowLowerAlignmentIfNoRecentWakeUp(
base::TimeDelta alignment) { … }
bool WakeUpBudgetPool::CanRunTasksAt(base::TimeTicks moment) const { … }
base::TimeTicks WakeUpBudgetPool::GetTimeTasksCanRunUntil(
base::TimeTicks now) const { … }
base::TimeTicks WakeUpBudgetPool::GetNextAllowedRunTime(
base::TimeTicks desired_run_time) const { … }
void WakeUpBudgetPool::OnWakeUp(base::TimeTicks now) { … }
void WakeUpBudgetPool::WriteIntoTrace(perfetto::TracedValue context,
base::TimeTicks now) const { … }
}
}