| Index: third_party/WebKit/Source/platform/scheduler/base/time_domain.h
|
| diff --git a/third_party/WebKit/Source/platform/scheduler/base/time_domain.h b/third_party/WebKit/Source/platform/scheduler/base/time_domain.h
|
| index 639d1742a35feec99c4355430a72a7ab048b076a..cc4e7927f619fea2483e936b503cbbf5a1e8e707 100644
|
| --- a/third_party/WebKit/Source/platform/scheduler/base/time_domain.h
|
| +++ b/third_party/WebKit/Source/platform/scheduler/base/time_domain.h
|
| @@ -62,9 +62,11 @@ class BLINK_PLATFORM_EXPORT TimeDomain {
|
| // Evaluate this TimeDomain's Now. Can be called from any thread.
|
| virtual base::TimeTicks Now() const = 0;
|
|
|
| - // Some TimeDomains support virtual time, this method tells us to advance time
|
| - // if possible and return true if time was advanced.
|
| - virtual bool MaybeAdvanceTime() = 0;
|
| + // Computes the delay until the next task the TimeDomain is aware of, if any.
|
| + // Note virtual time domains may return base::TimeDelta() if they have any
|
| + // tasks that are eligible to run.
|
| + virtual base::Optional<base::TimeDelta> DelayTillNextTask(
|
| + LazyNow* lazy_now) = 0;
|
|
|
| // Returns the name of this time domain for tracing.
|
| virtual const char* GetName() const = 0;
|
| @@ -110,7 +112,7 @@ class BLINK_PLATFORM_EXPORT TimeDomain {
|
| void UnregisterQueue(internal::TaskQueueImpl* queue);
|
|
|
| // Updates active queues associated with this TimeDomain.
|
| - void UpdateWorkQueues(LazyNow lazy_now);
|
| + void UpdateWorkQueues(LazyNow* lazy_now);
|
|
|
| // Called by the TaskQueueManager when the TimeDomain is registered.
|
| virtual void OnRegisterWithTaskQueueManager(
|
|
|