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

Issue 1253203003: cc: Remove SchedulerStateMachine::UpdateState (Closed)

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

Description

cc: Remove SchedulerStateMachine::UpdateState Also rename UpdateStateOn<Action> to Will<Action> and call Will<Action> directly from the Scheduler. This is in preparation of adding a Did<Action> methods that will allow us to update state immediately in response to the results of an action. Update and restructure tests for new interface. BUG=486072 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/1f154eacd3030a3b9c369675740cac42a0203825 Cr-Commit-Position: refs/heads/master@{#343294}

Patch Set 1 #

Patch Set 2 : WillActivation -> WillActivate #

Total comments: 1

Patch Set 3 : nix WillAction #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -106 lines) Patch
M cc/scheduler/scheduler.cc View 1 2 3 chunks +18 lines, -3 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 1 2 2 chunks +8 lines, -10 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 2 8 chunks +9 lines, -59 lines 0 comments Download
M cc/scheduler/scheduler_state_machine_unittest.cc View 1 2 21 chunks +113 lines, -34 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
brianderson
ptal
5 years, 4 months ago (2015-07-31 22:39:17 UTC) #2
sunnyps
LGTM https://codereview.chromium.org/1253203003/diff/20001/cc/scheduler/scheduler_state_machine.h File cc/scheduler/scheduler_state_machine.h (right): https://codereview.chromium.org/1253203003/diff/20001/cc/scheduler/scheduler_state_machine.h#newcode125 cc/scheduler/scheduler_state_machine.h:125: void WillAction(Action action); nit: WillPerformAction?
5 years, 4 months ago (2015-08-01 00:59:14 UTC) #3
mithro-old
On 2015/08/01 00:59:14, sunnyps wrote: > LGTM > > https://codereview.chromium.org/1253203003/diff/20001/cc/scheduler/scheduler_state_machine.h > File cc/scheduler/scheduler_state_machine.h (right): > ...
5 years, 4 months ago (2015-08-01 01:02:21 UTC) #4
sunnyps
Also, have you considered the following instead: switch(NextAction()) { case DRAW: state_machine_.WillDraw(); client_->Draw(); state_machine_.DidDraw(result); } ...
5 years, 4 months ago (2015-08-01 01:08:28 UTC) #5
brianderson
On 2015/08/01 01:08:28, sunnyps wrote: > Also, have you considered the following instead: > > ...
5 years, 4 months ago (2015-08-01 02:07:19 UTC) #6
brianderson
+Dana and Vlad to keep them in the loop regarding checkerboard-related work.
5 years, 4 months ago (2015-08-03 22:55:52 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1253203003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1253203003/40001
5 years, 4 months ago (2015-08-03 22:56:29 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/94310)
5 years, 4 months ago (2015-08-04 00:10:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1253203003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1253203003/40001
5 years, 4 months ago (2015-08-13 21:53:52 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-13 22:55:53 UTC) #15
commit-bot: I haz the power
5 years, 4 months ago (2015-08-13 22:56:35 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1f154eacd3030a3b9c369675740cac42a0203825
Cr-Commit-Position: refs/heads/master@{#343294}

Powered by Google App Engine
This is Rietveld 408576698