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

Issue 1200113003: cc: Cleanup DelayBasedTimeSource code. (Closed)

Created:
5 years, 6 months ago by sunnyps
Modified:
5 years, 5 months ago
Reviewers:
brianderson, mithro-old
CC:
cc-bugs_chromium.org, chromium-reviews, scheduler-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@task_runner_refptr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Cleanup DelayBasedTimeSource code. BUG=463198 R=brianderson,mithro CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/2452de2def483ca4011194e185bc8ed3a1b49bb3 Cr-Commit-Position: refs/heads/master@{#337734}

Patch Set 1 #

Patch Set 2 : mithro's review #

Total comments: 3

Patch Set 3 : Fix race between missed tick and normal tick #

Total comments: 9

Patch Set 4 : Remove missed post task #

Patch Set 5 : Remove task runner #

Total comments: 3

Patch Set 6 : Rebase #

Patch Set 7 : mithro's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -131 lines) Patch
M cc/scheduler/begin_frame_source.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/scheduler/begin_frame_source.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M cc/scheduler/delay_based_time_source.h View 1 2 3 4 5 6 4 chunks +30 lines, -33 lines 0 comments Download
M cc/scheduler/delay_based_time_source.cc View 1 2 3 4 5 6 7 chunks +63 lines, -70 lines 0 comments Download
M cc/scheduler/delay_based_time_source_unittest.cc View 1 2 3 18 chunks +18 lines, -18 lines 0 comments Download
M cc/test/scheduler_test_common.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M cc/test/scheduler_test_common.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (2 generated)
sunnyps
PTAL Requires https://codereview.chromium.org/1205483004/ to go in first.
5 years, 6 months ago (2015-06-23 01:35:44 UTC) #1
brianderson
lgtm. I think you can remove my DisplayScheduler hack that posts missed BeginFrames from the ...
5 years, 6 months ago (2015-06-23 01:47:56 UTC) #2
mithro-old
On 2015/06/23 01:47:56, brianderson wrote: > lgtm. I think you can remove my DisplayScheduler hack ...
5 years, 6 months ago (2015-06-23 02:45:39 UTC) #3
mithro-old
Looking at the delay_based_time_source.cc, when SetActive(true) is called it posts a DelayedTask which will end ...
5 years, 6 months ago (2015-06-23 02:57:20 UTC) #4
sunnyps
On 2015/06/23 02:57:20, mithro wrote: > Looking at the delay_based_time_source.cc, when SetActive(true) is called it ...
5 years, 6 months ago (2015-06-23 18:37:45 UTC) #5
sunnyps
Added a check to ensure that we don't send the MISSED frame if we're going ...
5 years, 6 months ago (2015-06-23 20:21:58 UTC) #6
brianderson
On 2015/06/23 18:37:45, sunnyps wrote: > On 2015/06/23 02:57:20, mithro wrote: > > Looking at ...
5 years, 6 months ago (2015-06-23 21:00:17 UTC) #7
brianderson
https://codereview.chromium.org/1200113003/diff/20001/cc/scheduler/delay_based_time_source.cc File cc/scheduler/delay_based_time_source.cc (left): https://codereview.chromium.org/1200113003/diff/20001/cc/scheduler/delay_based_time_source.cc#oldcode233 cc/scheduler/delay_based_time_source.cc:233: if (now <= new_tick_target) I forget why this was ...
5 years, 6 months ago (2015-06-23 21:00:29 UTC) #8
sunnyps
PTAL This version makes DelayBasedTimeSource responsible for handling both missed frames and normal frames - ...
5 years, 6 months ago (2015-06-26 00:45:28 UTC) #9
brianderson
Approach sgtm. Thanks for cleaning up the DBTS code as well. https://codereview.chromium.org/1200113003/diff/40001/cc/scheduler/delay_based_time_source.cc File cc/scheduler/delay_based_time_source.cc (right): ...
5 years, 6 months ago (2015-06-26 19:24:35 UTC) #10
mithro-old
I agree with brianderson that it would be cleaner to use closures rather than the ...
5 years, 5 months ago (2015-06-30 08:11:52 UTC) #11
sunnyps
PTAL. I removed the separate PostTask for the missed begin frame from this CL. I ...
5 years, 5 months ago (2015-07-02 01:01:14 UTC) #12
sunnyps
On 2015/07/02 at 01:01:14, sunnyps wrote: > PTAL. > > I removed the separate PostTask ...
5 years, 5 months ago (2015-07-02 01:01:38 UTC) #13
mithro-old
LGTM. https://codereview.chromium.org/1200113003/diff/80001/cc/scheduler/delay_based_time_source.cc File cc/scheduler/delay_based_time_source.cc (right): https://codereview.chromium.org/1200113003/diff/80001/cc/scheduler/delay_based_time_source.cc#newcode59 cc/scheduler/delay_based_time_source.cc:59: return base::TimeTicks(); nit: I think it would be ...
5 years, 5 months ago (2015-07-06 11:29:13 UTC) #14
brianderson
lgtm
5 years, 5 months ago (2015-07-06 23:36:24 UTC) #15
sunnyps
On 2015/07/06 11:29:13, mithro wrote: > LGTM. > > https://codereview.chromium.org/1200113003/diff/80001/cc/scheduler/delay_based_time_source.cc > File cc/scheduler/delay_based_time_source.cc (right): > ...
5 years, 5 months ago (2015-07-07 23:21:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1200113003/120001
5 years, 5 months ago (2015-07-07 23:22:48 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 5 months ago (2015-07-08 02:09:56 UTC) #20
commit-bot: I haz the power
5 years, 5 months ago (2015-07-08 02:11:11 UTC) #21
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2452de2def483ca4011194e185bc8ed3a1b49bb3
Cr-Commit-Position: refs/heads/master@{#337734}

Powered by Google App Engine
This is Rietveld 408576698