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

Issue 1265023005: cc: Add SchedulerStateMachine::DidDraw and use for forced draws (Closed)

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

Description

cc: Add SchedulerStateMachine::DidDraw and use for forced draws Refactors the code a bit to unify the regular and forced draw paths. Adds and switches over to using a SchedulerStateMachine::DidAction helper method. A few unit tests are fixed or removed to be more realistic and to reflect actual needs_redraw_ behavior after a draw that fails with DRAW_ABORTED_CHECKERBOARD_ANIMATIONS. BUG=486072 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/f677d495ab096cd08a821d965bb29149c6b9d76d Cr-Commit-Position: refs/heads/master@{#361555}

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase #

Patch Set 3 : Remove SetDrawResult and pass result as argument instead #

Total comments: 10

Patch Set 4 : Sunny's suggestsions #

Patch Set 5 : Don't swap after aborted draw in tests. Add DCHECKs. #

Total comments: 6

Patch Set 6 : Sunny's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -216 lines) Patch
M cc/scheduler/draw_result.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 2 chunks +8 lines, -11 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 1 2 3 4 5 6 chunks +19 lines, -10 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 2 3 4 5 12 chunks +81 lines, -73 lines 0 comments Download
M cc/scheduler/scheduler_state_machine_unittest.cc View 1 2 3 4 19 chunks +163 lines, -122 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (5 generated)
brianderson
ptal!
5 years, 4 months ago (2015-08-01 00:55:39 UTC) #2
sunnyps
https://codereview.chromium.org/1265023005/diff/1/cc/scheduler/scheduler_state_machine.h File cc/scheduler/scheduler_state_machine.h (right): https://codereview.chromium.org/1265023005/diff/1/cc/scheduler/scheduler_state_machine.h#newcode126 cc/scheduler/scheduler_state_machine.h:126: void DidAction(Action action); nit: DidPerformAction?
5 years, 4 months ago (2015-08-25 17:23:24 UTC) #3
sunnyps
On 2015/08/25 17:23:24, sunnyps wrote: > https://codereview.chromium.org/1265023005/diff/1/cc/scheduler/scheduler_state_machine.h > File cc/scheduler/scheduler_state_machine.h (right): > > https://codereview.chromium.org/1265023005/diff/1/cc/scheduler/scheduler_state_machine.h#newcode126 > ...
5 years, 4 months ago (2015-08-25 17:23:39 UTC) #4
brianderson
Reviving this for: https://codereview.chromium.org/1460923002/ Sunny, can you take another look?
5 years, 1 month ago (2015-11-19 19:02:06 UTC) #5
sunnyps
https://codereview.chromium.org/1265023005/diff/40001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/1265023005/diff/40001/cc/scheduler/scheduler_state_machine.cc#newcode667 cc/scheduler/scheduler_state_machine.cc:667: if (did_request_swap) { Doesn't draw_result != DRAW_SUCCESS imply that ...
5 years, 1 month ago (2015-11-20 23:34:07 UTC) #6
brianderson
https://codereview.chromium.org/1265023005/diff/40001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/1265023005/diff/40001/cc/scheduler/scheduler_state_machine.cc#newcode667 cc/scheduler/scheduler_state_machine.cc:667: if (did_request_swap) { On 2015/11/20 23:34:07, sunnyps wrote: > ...
5 years, 1 month ago (2015-11-21 00:31:33 UTC) #7
brianderson
Ptal again. I think the code is easier to read now.
5 years, 1 month ago (2015-11-21 01:19:02 UTC) #8
brianderson
https://codereview.chromium.org/1265023005/diff/40001/cc/scheduler/scheduler_state_machine_unittest.cc File cc/scheduler/scheduler_state_machine_unittest.cc (right): https://codereview.chromium.org/1265023005/diff/40001/cc/scheduler/scheduler_state_machine_unittest.cc#newcode446 cc/scheduler/scheduler_state_machine_unittest.cc:446: state.DidSwapBuffersComplete(); On 2015/11/20 23:34:07, sunnyps wrote: > Do we ...
5 years, 1 month ago (2015-11-21 01:25:30 UTC) #9
brianderson
Added DCHECKs to make tests that swap after an aborted draw fail and then fixed ...
5 years, 1 month ago (2015-11-23 23:37:54 UTC) #10
sunnyps
LGTM with nits https://codereview.chromium.org/1265023005/diff/40001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/1265023005/diff/40001/cc/scheduler/scheduler_state_machine.cc#newcode252 cc/scheduler/scheduler_state_machine.cc:252: state->SetBoolean("did_perform_swap_in_last_draw", nit: rename did_perform_swap_in_last_draw to did_swap_in_last_draw ...
5 years ago (2015-11-24 22:42:44 UTC) #11
brianderson
https://codereview.chromium.org/1265023005/diff/40001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/1265023005/diff/40001/cc/scheduler/scheduler_state_machine.cc#newcode252 cc/scheduler/scheduler_state_machine.cc:252: state->SetBoolean("did_perform_swap_in_last_draw", On 2015/11/24 22:42:44, sunnyps wrote: > nit: rename ...
5 years ago (2015-11-24 23:19:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1265023005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1265023005/100001
5 years ago (2015-11-24 23:23:48 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-11-25 03:48:26 UTC) #18
commit-bot: I haz the power
5 years ago (2015-11-25 03:49:17 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f677d495ab096cd08a821d965bb29149c6b9d76d
Cr-Commit-Position: refs/heads/master@{#361555}

Powered by Google App Engine
This is Rietveld 408576698