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

Unified Diff: third_party/WebKit/Source/platform/Timer.h

Issue 1477353002: Revert of Move throttling of background timers into the renderer scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/Timer.h
diff --git a/third_party/WebKit/Source/platform/Timer.h b/third_party/WebKit/Source/platform/Timer.h
index d6616a853d70078b6e6b0a489b1a64c7346450fc..f2c4aa3228fbab097a0055f22c7dd5d0ee6b3716 100644
--- a/third_party/WebKit/Source/platform/Timer.h
+++ b/third_party/WebKit/Source/platform/Timer.h
@@ -61,6 +61,7 @@
const WebTraceLocation& location() const { return m_location; }
double nextFireInterval() const;
+ double nextUnalignedFireInterval() const;
double repeatInterval() const { return m_repeatInterval; }
void augmentRepeatInterval(double delta) {
@@ -68,6 +69,8 @@
setNextFireTime(now, m_nextFireTime - now + delta);
m_repeatInterval += delta;
}
+
+ void didChangeAlignmentInterval(double now);
struct PLATFORM_EXPORT Comparator {
bool operator()(const TimerBase* a, const TimerBase* b) const;
@@ -118,6 +121,7 @@
};
double m_nextFireTime; // 0 if inactive
+ double m_unalignedNextFireTime; // m_nextFireTime not considering alignment interval
double m_repeatInterval; // 0 if not repeating
WebTraceLocation m_location;
CancellableTimerTask* m_cancellableTimerTask; // NOT OWNED
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp ('k') | third_party/WebKit/Source/platform/Timer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698