Index: components/scheduler/renderer/renderer_scheduler.h |
diff --git a/components/scheduler/renderer/renderer_scheduler.h b/components/scheduler/renderer/renderer_scheduler.h |
index 98635ba6be4efc692a9f5239c6d485204eff9608..9f9204f111cb8b4dc33d8ea73162fb8488ce4991 100644 |
--- a/components/scheduler/renderer/renderer_scheduler.h |
+++ b/components/scheduler/renderer/renderer_scheduler.h |
@@ -151,6 +151,18 @@ |
// received via OnRendererBackgrounded. Defaults to disabled. |
virtual void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) = 0; |
+ // Returns a double which is the number of seconds since epoch (Jan 1, 1970). |
+ // 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. |
+ // 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(); |
DISALLOW_COPY_AND_ASSIGN(RendererScheduler); |