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 1cbab9da797f597abc994bd0a9bb2bfcc6de4be0..b68ec07b976200e3c40e54ad08ed2f32b4d41282 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 |
@@ -145,11 +145,11 @@ class BLINK_PLATFORM_EXPORT TaskQueueThrottler : public TimeDomain::Observer, |
base::TimeTicks now) const; |
private: |
struct Metadata { |
- Metadata() : throttling_ref_count(0), budget_pool(nullptr) {} |
+ Metadata() : throttling_ref_count(0) {} |
size_t throttling_ref_count; |
- BudgetPool* budget_pool; |
+ std::unordered_set<BudgetPool*> budget_pools; |
}; |
using TaskQueueMap = std::unordered_map<TaskQueue*, Metadata>; |
@@ -163,8 +163,6 @@ class BLINK_PLATFORM_EXPORT TaskQueueThrottler : public TimeDomain::Observer, |
base::TimeTicks now, |
base::TimeTicks runtime); |
- BudgetPool* GetBudgetPoolForQueue(TaskQueue* queue); |
- |
// Return next possible time when queue is allowed to run in accordance |
// with throttling policy. |
base::TimeTicks GetNextAllowedRunTime(base::TimeTicks now, TaskQueue* queue); |