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

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

Issue 2896603002: [scheduler] Move task alignment into WakeUpBudgetPool. (Closed)
Patch Set: no iostream 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 26ab1f26d2e651060ed0d708dc51e78ff9828e23..8a83a09736f719da3eb273f55333c38ed065800a 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 @@ class PLATFORM_EXPORT WakeUpBudgetPool : public BudgetPool {
// Note: this does not have an immediate effect and should be called only
// during initialization of a WakeUpBudgetPool.
- void SetWakeUpRate(double wakeups_per_second);
+ void SetWakeUpRate(double wake_ups_per_second);
// Note: this does not have an immediate effect and should be called only
// during initialization of a WakeUpBudgetPool.
@@ -50,12 +50,10 @@ class PLATFORM_EXPORT WakeUpBudgetPool : public BudgetPool {
QueueBlockType GetBlockType() const final;
private:
- base::Optional<base::TimeTicks> NextWakeUp() const;
+ base::TimeDelta wake_up_interval_;
+ base::TimeDelta wake_up_duration_;
- double wakeups_per_second_;
- base::TimeDelta wakeup_duration_;
-
- base::Optional<base::TimeTicks> last_wakeup_;
+ base::Optional<base::TimeTicks> last_wake_up_;
DISALLOW_COPY_AND_ASSIGN(WakeUpBudgetPool);
};

Powered by Google App Engine
This is Rietveld 408576698