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

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: Rebased 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 d1713ce324790080ab3bdf1c4674aca6165b6d8f..e84c5c6f46ebbcf6c254ef35aaabc478ed4c0016 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc
@@ -99,7 +99,7 @@ void TimeDomain::ScheduleDelayedWork(internal::TaskQueueImpl* queue,
}
if (observer_)
- observer_->OnTimeDomainHasDelayedWork();
+ observer_->OnTimeDomainHasDelayedWork(queue);
}
void TimeDomain::RegisterAsUpdatableTaskQueue(internal::TaskQueueImpl* queue) {
@@ -108,7 +108,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