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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/time_domain.cc

Issue 2644553002: Refactor TimeDomain::MaybeAdvanceTime in preparation for DoWork deduping (Closed)
Patch Set: Add tests for ComputeDelayTillNextTask Created 3 years, 11 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/base/time_domain.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc b/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc
index 59e3e3476f776d525a833bef262c7a7a6f4d76a5..fb5d98a20998c0cb7316abb6b4f6372eae97e553 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc
@@ -124,11 +124,11 @@ bool TimeDomain::UnregisterAsUpdatableTaskQueue(
return was_updatable;
}
-void TimeDomain::UpdateWorkQueues(LazyNow lazy_now) {
+void TimeDomain::UpdateWorkQueues(LazyNow* lazy_now) {
DCHECK(main_thread_checker_.CalledOnValidThread());
// Move any ready delayed tasks into the Incoming queues.
- WakeupReadyDelayedQueues(&lazy_now);
+ WakeupReadyDelayedQueues(lazy_now);
MoveNewlyUpdatableQueuesIntoUpdatableQueueSet();

Powered by Google App Engine
This is Rietveld 408576698