| Index: third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h
|
| diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h b/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h
|
| index d4b1859f8f2aaf8f43d342347742ff36e772f6c7..5b249c76f3fe12d1aa0ca0d09968a7c4cfd86c4a 100644
|
| --- a/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h
|
| +++ b/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h
|
| @@ -160,13 +160,9 @@ class BLINK_PLATFORM_EXPORT TaskQueueThrottler : public TimeDomain::Observer {
|
| // Returns true if the |task_queue| is throttled.
|
| bool IsThrottled(TaskQueue* task_queue) const;
|
|
|
| - // Disable throttling for all queues, this setting takes precedence over
|
| - // all other throttling settings. Designed to be used when a global event
|
| - // disabling throttling happens (e.g. audio is playing).
|
| - void DisableThrottling();
|
| -
|
| - // Enable back global throttling.
|
| - void EnableThrottling();
|
| + // Tells the TaskQueueThrottler we're using virtual time, which disables all
|
| + // throttling.
|
| + void EnableVirtualTime();
|
|
|
| const ThrottledTimeDomain* time_domain() const { return time_domain_.get(); }
|
|
|
| @@ -240,7 +236,7 @@ class BLINK_PLATFORM_EXPORT TaskQueueThrottler : public TimeDomain::Observer {
|
|
|
| CancelableClosureHolder pump_throttled_tasks_closure_;
|
| base::Optional<base::TimeTicks> pending_pump_throttled_tasks_runtime_;
|
| - bool allow_throttling_;
|
| + bool virtual_time_;
|
|
|
| std::unordered_map<TimeBudgetPool*, std::unique_ptr<TimeBudgetPool>>
|
| time_budget_pools_;
|
|
|