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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/throttled_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 & addressed comments 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/renderer/throttled_time_domain.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc b/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc
index d39bf3fca0330487d1fccfe281b21f2174e9a2fa..8f6887cbbf7945f4728d5260322c13c40756a69c 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc
@@ -19,7 +19,7 @@ const char* ThrottledTimeDomain::GetName() const {
void ThrottledTimeDomain::RequestWakeup(base::TimeTicks now,
base::TimeDelta delay) {
- // We assume the owner (i.e. ThrottlingHelper) will manage wakeups on our
+ // We assume the owner (i.e. TaskQueueThrottler) will manage wakeups on our
// behalf.
}
@@ -33,7 +33,8 @@ bool ThrottledTimeDomain::MaybeAdvanceTime() {
return true; // Causes DoWork to post a continuation.
// Unlike RealTimeDomain::MaybeAdvanceTime we don't request a wake up here, we
- // assume the owner (i.e. ThrottlingHelper) will manage wakeups on our behalf.
+ // assume the owner (i.e. TaskQueueThrottler) will manage wakeups on our
+ // behalf.
return false;
}

Powered by Google App Engine
This is Rietveld 408576698