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

Issue 2644553002: Refactor TimeDomain::MaybeAdvanceTime in preparation for DoWork deduping (Closed)

Created:
3 years, 11 months ago by alex clarke (OOO till 29th)
Modified:
3 years, 11 months ago
Reviewers:
Sami
CC:
chromium-reviews, blink-reviews, kinuko+watch, scheduler-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor TimeDomain::MaybeAdvanceTime in preparation for DoWork deduping Patch https://codereview.chromium.org/2546423002/ is being broken up into smaller parts. This patch refactors way DoWork figures out what kind of continuuation is needed without actually changing policy BUG=578176 Review-Url: https://codereview.chromium.org/2644553002 Cr-Commit-Position: refs/heads/master@{#444780} Committed: https://chromium.googlesource.com/chromium/src/+/63aa3c1e6e35803f1e9564ae1e2dd0cf74e58e2e

Patch Set 1 #

Patch Set 2 : Add tests for ComputeDelayTillNextTask #

Total comments: 8

Patch Set 3 : Fix comment #

Patch Set 4 : Fix bad rebase #

Patch Set 5 : Better comment for TimeDomain::DelayTillNextTask #

Patch Set 6 : Made handling of time by ProcessTaskFromWorkQueue more explicit #

Total comments: 2

Patch Set 7 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -65 lines) Patch
M third_party/WebKit/Source/platform/scheduler/base/real_time_domain.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc View 1 2 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.h View 1 2 3 4 5 2 chunks +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc View 1 2 3 4 5 8 chunks +47 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_perftest.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_unittest.cc View 1 2 chunks +53 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/time_domain.h View 1 2 3 4 5 6 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/time_domain.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/time_domain_unittest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/virtual_time_domain.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/virtual_time_domain.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/auto_advancing_virtual_time_domain.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/auto_advancing_virtual_time_domain.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc View 1 2 3 4 5 6 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 33 (23 generated)
alex clarke (OOO till 29th)
PTAL
3 years, 11 months ago (2017-01-18 14:43:50 UTC) #3
Sami
https://codereview.chromium.org/2644553002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc File third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc (right): https://codereview.chromium.org/2644553002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc#newcode64 third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc:64: // run at the right time.. nit: s/.././ https://codereview.chromium.org/2644553002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc ...
3 years, 11 months ago (2017-01-18 18:45:58 UTC) #9
alex clarke (OOO till 29th)
https://codereview.chromium.org/2644553002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc File third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc (right): https://codereview.chromium.org/2644553002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc#newcode64 third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc:64: // run at the right time.. On 2017/01/18 18:45:57, ...
3 years, 11 months ago (2017-01-19 08:56:10 UTC) #12
Sami
https://codereview.chromium.org/2644553002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc File third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc (right): https://codereview.chromium.org/2644553002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc#newcode327 third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc:327: *lazy_now = real_time_domain()->CreateLazyNow(); On 2017/01/19 08:56:10, alex clarke wrote: ...
3 years, 11 months ago (2017-01-19 12:01:01 UTC) #21
Sami
https://codereview.chromium.org/2644553002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc File third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc (right): https://codereview.chromium.org/2644553002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc#newcode327 third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc:327: *lazy_now = real_time_domain()->CreateLazyNow(); On 2017/01/19 12:01:00, Sami wrote: > ...
3 years, 11 months ago (2017-01-19 12:10:15 UTC) #22
alex clarke (OOO till 29th)
https://codereview.chromium.org/2644553002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc File third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc (right): https://codereview.chromium.org/2644553002/diff/20001/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc#newcode327 third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc:327: *lazy_now = real_time_domain()->CreateLazyNow(); On 2017/01/19 12:10:15, Sami wrote: > ...
3 years, 11 months ago (2017-01-19 14:25:02 UTC) #25
Sami
lgtm, thanks for simplifying the use of LazyNow! https://codereview.chromium.org/2644553002/diff/100001/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc File third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc (right): https://codereview.chromium.org/2644553002/diff/100001/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc#newcode36 third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc:36: // ...
3 years, 11 months ago (2017-01-19 15:22:29 UTC) #26
alex clarke (OOO till 29th)
Thanks https://codereview.chromium.org/2644553002/diff/100001/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc File third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc (right): https://codereview.chromium.org/2644553002/diff/100001/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc#newcode36 third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc:36: // Unlike RealTimeDomain::ContinuationNeeded we don't request a wake ...
3 years, 11 months ago (2017-01-19 15:51:03 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2644553002/120001
3 years, 11 months ago (2017-01-19 15:51:27 UTC) #30
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 17:56:27 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/63aa3c1e6e35803f1e9564ae1e2d...

Powered by Google App Engine
This is Rietveld 408576698