| Index: third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.h
|
| diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.h b/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.h
|
| index 8a83a09736f719da3eb273f55333c38ed065800a..26ab1f26d2e651060ed0d708dc51e78ff9828e23 100644
|
| --- a/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.h
|
| +++ b/third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.h
|
| @@ -26,7 +26,7 @@
|
|
|
| // Note: this does not have an immediate effect and should be called only
|
| // during initialization of a WakeUpBudgetPool.
|
| - void SetWakeUpRate(double wake_ups_per_second);
|
| + void SetWakeUpRate(double wakeups_per_second);
|
|
|
| // Note: this does not have an immediate effect and should be called only
|
| // during initialization of a WakeUpBudgetPool.
|
| @@ -50,10 +50,12 @@
|
| QueueBlockType GetBlockType() const final;
|
|
|
| private:
|
| - base::TimeDelta wake_up_interval_;
|
| - base::TimeDelta wake_up_duration_;
|
| + base::Optional<base::TimeTicks> NextWakeUp() const;
|
|
|
| - base::Optional<base::TimeTicks> last_wake_up_;
|
| + double wakeups_per_second_;
|
| + base::TimeDelta wakeup_duration_;
|
| +
|
| + base::Optional<base::TimeTicks> last_wakeup_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(WakeUpBudgetPool);
|
| };
|
|
|