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

Issue 1223163006: Implement PostDelayedTaskAt for guaranteed timer ordering (Closed)

Created:
5 years, 5 months ago by Sami
Modified:
5 years, 5 months ago
CC:
chromium-reviews, jam, scheduler-bugs_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement PostDelayedTaskAt for guaranteed timer ordering This patch implements a new method for posting delayed tasks: PostDelayedTaskAt(). In contrast to PostDelayedTask(), this API accepts the desired run time as an absolute time stamp instead of a delta from the current time. This makes it possible for Blink to post several aligned timers to the same desired run time and have the timers execute in their posted order. BUG=508279 Committed: https://crrev.com/2a96102e57a45f9c87187fb2b4f35c3cdba6153a Cr-Commit-Position: refs/heads/master@{#339024}

Patch Set 1 #

Patch Set 2 : Added a test. #

Patch Set 3 : Rebased. #

Total comments: 8

Patch Set 4 : Review comments. #

Patch Set 5 : Build fix #

Patch Set 6 : Perf test build fix #

Patch Set 7 : Add missing include to IdleHelperTest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -119 lines) Patch
M components/scheduler/child/child_scheduler.h View 2 chunks +2 lines, -1 line 0 comments Download
M components/scheduler/child/idle_helper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/scheduler/child/idle_helper_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A components/scheduler/child/null_task_queue.h View 1 chunk +39 lines, -0 lines 0 comments Download
A components/scheduler/child/null_task_queue.cc View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
M components/scheduler/child/null_worker_scheduler.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/scheduler/child/null_worker_scheduler.cc View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download
M components/scheduler/child/scheduler_helper.h View 3 chunks +3 lines, -4 lines 0 comments Download
M components/scheduler/child/scheduler_helper.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M components/scheduler/child/scheduler_helper_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
A components/scheduler/child/task_queue.h View 1 chunk +31 lines, -0 lines 0 comments Download
M components/scheduler/child/task_queue_manager.h View 6 chunks +6 lines, -7 lines 0 comments Download
M components/scheduler/child/task_queue_manager.cc View 1 2 3 4 28 chunks +108 lines, -65 lines 0 comments Download
M components/scheduler/child/task_queue_manager_perftest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/scheduler/child/task_queue_manager_unittest.cc View 1 2 chunks +31 lines, -0 lines 0 comments Download
M components/scheduler/child/web_scheduler_impl.h View 4 chunks +8 lines, -2 lines 0 comments Download
M components/scheduler/child/web_scheduler_impl.cc View 1 2 3 4 2 chunks +16 lines, -3 lines 0 comments Download
M components/scheduler/child/worker_scheduler_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M components/scheduler/child/worker_scheduler_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/scheduler/renderer/null_renderer_scheduler.h View 2 chunks +4 lines, -3 lines 0 comments Download
M components/scheduler/renderer/null_renderer_scheduler.cc View 1 2 3 4 2 chunks +5 lines, -7 lines 0 comments Download
M components/scheduler/renderer/renderer_scheduler.h View 1 chunk +1 line, -1 line 0 comments Download
M components/scheduler/renderer/renderer_scheduler_impl.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/scheduler/renderer/renderer_scheduler_impl.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M components/scheduler/renderer/renderer_web_scheduler_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/scheduler/renderer/webthread_impl_for_renderer_scheduler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/scheduler/scheduler.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
M content/test/fake_renderer_scheduler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/fake_renderer_scheduler.cc View 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
Sami
PTAL.
5 years, 5 months ago (2015-07-15 18:11:16 UTC) #2
alex clarke (OOO till 29th)
https://codereview.chromium.org/1223163006/diff/40001/components/scheduler/child/null_task_queue.h File components/scheduler/child/null_task_queue.h (right): https://codereview.chromium.org/1223163006/diff/40001/components/scheduler/child/null_task_queue.h#newcode13 components/scheduler/child/null_task_queue.h:13: class SCHEDULER_EXPORT NullTaskQueue : public TaskQueue { The .cc ...
5 years, 5 months ago (2015-07-16 09:29:00 UTC) #3
Sami
Comments addressed, PTAL. https://codereview.chromium.org/1223163006/diff/40001/components/scheduler/child/null_task_queue.h File components/scheduler/child/null_task_queue.h (right): https://codereview.chromium.org/1223163006/diff/40001/components/scheduler/child/null_task_queue.h#newcode13 components/scheduler/child/null_task_queue.h:13: class SCHEDULER_EXPORT NullTaskQueue : public TaskQueue ...
5 years, 5 months ago (2015-07-16 12:19:32 UTC) #4
alex clarke (OOO till 29th)
lgtm
5 years, 5 months ago (2015-07-16 12:23:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1223163006/80001
5 years, 5 months ago (2015-07-16 12:25:05 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/74107) (exceeded global retry quota)
5 years, 5 months ago (2015-07-16 12:29:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1223163006/100001
5 years, 5 months ago (2015-07-16 12:43:21 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/74514) (exceeded global retry quota)
5 years, 5 months ago (2015-07-16 12:55:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1223163006/120001
5 years, 5 months ago (2015-07-16 13:04:24 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 5 months ago (2015-07-16 14:39:37 UTC) #18
commit-bot: I haz the power
5 years, 5 months ago (2015-07-16 14:40:42 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2a96102e57a45f9c87187fb2b4f35c3cdba6153a
Cr-Commit-Position: refs/heads/master@{#339024}

Powered by Google App Engine
This is Rietveld 408576698