Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1331)

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h

Issue 2754853003: [scheduler] Support adding one queue to multiple budget pools (Closed)
Patch Set: Address comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698