Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1205)

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/wake_up_budget_pool.h

Issue 2893363002: Revert of [scheduler] Move task alignment into WakeUpBudgetPool. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698