| 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 71b20b2870331dad0b096ae02f3a40007e87d0f1..7e089a11bb383f7ec7c944ad12efeed8f04729c9 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
|
| @@ -202,7 +202,10 @@ class BLINK_PLATFORM_EXPORT TaskQueueThrottler : public TimeDomain::Observer {
|
| const scoped_refptr<TaskQueue>& task_runner() const { return task_runner_; }
|
|
|
| // Returned object is owned by |TaskQueueThrottler|.
|
| - TimeBudgetPool* CreateTimeBudgetPool(const char* name);
|
| + TimeBudgetPool* CreateTimeBudgetPool(
|
| + const char* name,
|
| + base::Optional<base::TimeDelta> max_budget_level,
|
| + base::Optional<base::TimeDelta> max_throttling_duration);
|
|
|
| // Accounts for given task for cpu-based throttling needs.
|
| void OnTaskRunTimeReported(TaskQueue* task_queue,
|
| @@ -266,9 +269,6 @@ class BLINK_PLATFORM_EXPORT TaskQueueThrottler : public TimeDomain::Observer {
|
| const char* tracing_category_; // NOT OWNED
|
| std::unique_ptr<ThrottledTimeDomain> time_domain_;
|
|
|
| - base::Optional<base::TimeDelta> max_budget_level_;
|
| - base::Optional<base::TimeDelta> max_throttling_duration_;
|
| -
|
| CancelableClosureHolder pump_throttled_tasks_closure_;
|
| base::Optional<base::TimeTicks> pending_pump_throttled_tasks_runtime_;
|
| bool allow_throttling_;
|
|
|