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

Issue 970473004: [content] Add support for Non nestable idle tasks the the RendererScheduler (Closed)

Created:
5 years, 9 months ago by rmcilroy
Modified:
5 years, 9 months ago
Reviewers:
Sami
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam, scheduler-bugs_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[content] Add support for Non nestable idle tasks the the RendererScheduler Adds support for PostNonNestableIdleTask to the SingleThreadIdleTaskRunner. To do this the TaskQueueManager is changed to query whether it is running on a nested message loop and only re-post nested tasks if it is running in a nested run loop. Blink side of this patch is: https://codereview.chromium.org/976723002/ BUG=455713 Committed: https://crrev.com/c9df442b1d32b8bfd16b40b57eaa412047f6fa55 Cr-Commit-Position: refs/heads/master@{#320575}

Patch Set 1 #

Patch Set 2 : cl format #

Patch Set 3 : #

Patch Set 4 : Remove unintended changes. #

Total comments: 8

Patch Set 5 : Address Sami's comments #

Patch Set 6 : Rebase #

Patch Set 7 : Fix contentperftests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+384 lines, -28 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A content/renderer/scheduler/nestable_single_thread_task_runner.h View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A content/renderer/scheduler/nestable_task_runner_for_test.h View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
A content/renderer/scheduler/nestable_task_runner_for_test.cc View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M content/renderer/scheduler/renderer_scheduler.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M content/renderer/scheduler/renderer_scheduler_impl.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/scheduler/renderer_scheduler_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/scheduler/renderer_scheduler_impl_unittest.cc View 1 2 3 4 5 12 chunks +104 lines, -12 lines 0 comments Download
A content/renderer/scheduler/renderer_scheduler_message_loop_delegate.h View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A content/renderer/scheduler/renderer_scheduler_message_loop_delegate.cc View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
M content/renderer/scheduler/single_thread_idle_task_runner.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/scheduler/single_thread_idle_task_runner.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/scheduler/task_queue_manager.h View 1 2 3 4 3 chunks +6 lines, -4 lines 0 comments Download
M content/renderer/scheduler/task_queue_manager.cc View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/scheduler/task_queue_manager_perftest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M content/renderer/scheduler/task_queue_manager_unittest.cc View 1 2 3 4 5 3 chunks +8 lines, -3 lines 0 comments Download
M content/renderer/scheduler/web_scheduler_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/scheduler/web_scheduler_impl.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M content/renderer/scheduler/webthread_impl_for_scheduler_unittest.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 24 (10 generated)
rmcilroy
Sami: Could you take a look please, thanks.
5 years, 9 months ago (2015-03-03 19:33:46 UTC) #3
Sami
Functionally looks great but I think the callback business is a little unfortunate. I bet ...
5 years, 9 months ago (2015-03-04 12:19:53 UTC) #4
rmcilroy
On 2015/03/04 12:19:53, Sami wrote: > Functionally looks great but I think the callback business ...
5 years, 9 months ago (2015-03-05 12:22:21 UTC) #5
Sami
On 2015/03/05 12:22:21, rmcilroy wrote: > On 2015/03/04 12:19:53, Sami wrote: > > Functionally looks ...
5 years, 9 months ago (2015-03-05 12:49:31 UTC) #6
rmcilroy
On 2015/03/05 12:49:31, Sami wrote: > On 2015/03/05 12:22:21, rmcilroy wrote: > > On 2015/03/04 ...
5 years, 9 months ago (2015-03-12 17:40:47 UTC) #7
Sami
Thanks, lgtm, looks pretty neat now. https://codereview.chromium.org/970473004/diff/70001/content/renderer/scheduler/renderer_scheduler_impl.h File content/renderer/scheduler/renderer_scheduler_impl.h (right): https://codereview.chromium.org/970473004/diff/70001/content/renderer/scheduler/renderer_scheduler_impl.h#newcode13 content/renderer/scheduler/renderer_scheduler_impl.h:13: #include "content/renderer/scheduler/nestable_single_thread_task_runner.h" nit: ...
5 years, 9 months ago (2015-03-12 18:53:11 UTC) #8
rmcilroy
https://codereview.chromium.org/970473004/diff/70001/content/renderer/scheduler/renderer_scheduler_impl.h File content/renderer/scheduler/renderer_scheduler_impl.h (right): https://codereview.chromium.org/970473004/diff/70001/content/renderer/scheduler/renderer_scheduler_impl.h#newcode13 content/renderer/scheduler/renderer_scheduler_impl.h:13: #include "content/renderer/scheduler/nestable_single_thread_task_runner.h" On 2015/03/12 18:53:11, Sami wrote: > nit: ...
5 years, 9 months ago (2015-03-13 10:56:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/970473004/90001
5 years, 9 months ago (2015-03-13 10:57:13 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/6381)
5 years, 9 months ago (2015-03-13 12:34:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/970473004/110001
5 years, 9 months ago (2015-03-13 13:54:43 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/63970)
5 years, 9 months ago (2015-03-13 16:19:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/970473004/130001
5 years, 9 months ago (2015-03-13 19:26:53 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:130001)
5 years, 9 months ago (2015-03-13 21:22:38 UTC) #23
commit-bot: I haz the power
5 years, 9 months ago (2015-03-13 21:23:21 UTC) #24
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c9df442b1d32b8bfd16b40b57eaa412047f6fa55
Cr-Commit-Position: refs/heads/master@{#320575}

Powered by Google App Engine
This is Rietveld 408576698