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

Unified Diff: components/scheduler/renderer/renderer_scheduler.h

Issue 1652083002: Prepare for per-webview virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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: components/scheduler/renderer/renderer_scheduler.h
diff --git a/components/scheduler/renderer/renderer_scheduler.h b/components/scheduler/renderer/renderer_scheduler.h
index b9a542b0e3356eb46d9e300af6b32dbae95c2b7d..1360a553b05d8d1c91507514a246f9be775553ff 100644
--- a/components/scheduler/renderer/renderer_scheduler.h
+++ b/components/scheduler/renderer/renderer_scheduler.h
@@ -153,10 +153,16 @@ class SCHEDULER_EXPORT RendererScheduler : public ChildScheduler {
virtual void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) = 0;
// Returns a double which is the number of seconds since epoch (Jan 1, 1970).
- virtual double CurrentTimeSeconds() const = 0;
+ // This may represent either the real time, or a virtual time depending on
+ // whether or not the system is currently running a task associated with a
+ // virtual time domain or real time domain.
+ virtual double VirtualTimeSeconds() const = 0;
// Returns a microsecond resolution platform dependant time source.
- virtual double MonotonicallyIncreasingTimeSeconds() const = 0;
+ // This may represent either the real time, or a virtual time depending on
+ // whether or not the system is currently running a task associated with a
+ // virtual time domain or real time domain.
+ virtual double MonotonicallyIncreasingVirtualTimeSeconds() const = 0;
protected:
RendererScheduler();

Powered by Google App Engine
This is Rietveld 408576698