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

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

Issue 2258133002: [scheduler] Implement time-based cpu throttling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more fix Created 4 years, 3 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 71a6c07469c8f26e94e1171c5d3c55bd2380582c..799f28181cfb8e4e77ce108b12c0974bbc096e14 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc
@@ -81,7 +81,7 @@ void TimeDomain::ScheduleDelayedWork(internal::TaskQueueImpl* queue,
delayed_wakeup_multimap_.insert(std::make_pair(delayed_run_time, queue));
if (observer_)
- observer_->OnTimeDomainHasDelayedWork();
+ observer_->OnTimeDomainHasDelayedWork(queue);
}
void TimeDomain::CancelDelayedWork(internal::TaskQueueImpl* queue,
@@ -127,7 +127,7 @@ void TimeDomain::RegisterAsUpdatableTaskQueue(internal::TaskQueueImpl* queue) {
newly_updatable_.push_back(queue);
}
if (observer_)
- observer_->OnTimeDomainHasImmediateWork();
+ observer_->OnTimeDomainHasImmediateWork(queue);
}
bool TimeDomain::UnregisterAsUpdatableTaskQueue(

Powered by Google App Engine
This is Rietveld 408576698