|
|
Add an idle task to periodically sweep canceled delayed tasks
It turns out canceled delayed tasks can really pile up for some pages where they
repeatedly post dom timers with long delays and cancel them.
This patch adds an idle task which every 30s sweeps away all canceled delayed tasks.
We also add the concept of PostDelayedIdleTask to do so.
PostDelayedIdleTask posts a task which is eligible to run after the next time an idle
period starts. I.e. this has after wakeup semantics, i.e. unless something else wakes
the CPU up, it won't run.
BUG= 680815
Review-Url: https://codereview.chromium.org/2637463002
Cr-Commit-Position: refs/heads/master@{#443877}
Committed: https://chromium.googlesource.com/chromium/src/+/fd870526d2ed5a6b3577b46aa9f01532b15bc6d5
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+416 lines, -2 lines) |
Patch |
 |
M |
third_party/WebKit/Source/platform/BUILD.gn
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
|
View
|
1
2
3
4
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_unittest.cc
|
View
|
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/platform/scheduler/child/idle_canceled_delayed_task_sweeper.h
|
View
|
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/platform/scheduler/child/idle_canceled_delayed_task_sweeper.cc
|
View
|
1
2
3
4
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/platform/scheduler/child/idle_canceled_delayed_task_sweeper_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+137 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/child/idle_helper.h
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/child/idle_helper.cc
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/child/idle_helper_unittest.cc
|
View
|
|
3 chunks |
+39 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/child/scheduler_helper.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/child/single_thread_idle_task_runner.cc
|
View
|
|
2 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/scheduler/child/compositor_worker_scheduler.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/scheduler/child/single_thread_idle_task_runner.h
|
View
|
1
2
3
4
5
|
5 chunks |
+20 lines, -0 lines |
0 comments
|
Download
|
Total messages: 34 (25 generated)
|