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

Issue 2841263002: [VSync Queue] Flush input in CommitComplete() (Closed)

Created:
3 years, 8 months ago by chongz
Modified:
3 years, 7 months ago
Reviewers:
danakj, sunnyps, dtapuska
CC:
chromium-reviews, cc-bugs_chromium.org, dtapuska+chromiumwatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[VSync Queue] Flush input in CommitComplete() We should call |DeliverInputForBeginFrame()| in two places: 1. Low latency mode (begin main frame and commit every frame) * Flush input in |WillBeginImplFrame()| and the commit should include all input 2. High latency mode (begin main frame and commit are late) * Flush input in |CommitComplete()| and before |PrepareTiles()| * Also make sure it's outside an impl frame Tested locally and checkerboard issue seems to be fixed. Graphics-dev discussion: https://groups.google.com/a/chromium.org/d/msg/graphics-dev/xOdp3hIxZvg/SQtGediBEAAJ BUG=704732 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2841263002 Cr-Commit-Position: refs/heads/master@{#469118} Committed: https://chromium.googlesource.com/chromium/src/+/a237ad2e80ec9ff5cf211b8f28bc2525349e55e0

Patch Set 1 : Test Patch: VsyncAlignedInput Enabled #

Total comments: 6

Patch Set 2 : dtapuska's review: Rename |InputEventState| => |ImplThreadPhase|; Remove field trial config #

Patch Set 3 : danakj's comment: Also flush input in CommitComplete() #

Total comments: 2

Patch Set 4 : sunnyps's review: Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
M cc/trees/layer_tree_host_impl.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 53 (40 generated)
chongz
sunnyps@ PTAL, thanks! https://codereview.chromium.org/2841263002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2841263002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode1918 cc/trees/layer_tree_host_impl.cc:1918: input_handler_state_ = InputHandlerState::IDLE; Is this the ...
3 years, 7 months ago (2017-04-27 16:19:47 UTC) #12
dtapuska
https://codereview.chromium.org/2841263002/diff/1/cc/input/input_handler.h File cc/input/input_handler.h (right): https://codereview.chromium.org/2841263002/diff/1/cc/input/input_handler.h#newcode113 cc/input/input_handler.h:113: enum class InputHandlerState { This name seems a bit ...
3 years, 7 months ago (2017-04-27 16:24:44 UTC) #14
chongz
dtapuska@ PTAL again, thanks! https://codereview.chromium.org/2841263002/diff/1/cc/input/input_handler.h File cc/input/input_handler.h (right): https://codereview.chromium.org/2841263002/diff/1/cc/input/input_handler.h#newcode113 cc/input/input_handler.h:113: enum class InputHandlerState { On ...
3 years, 7 months ago (2017-04-27 19:12:14 UTC) #17
chongz
danakj@ PTAL, thanks!
3 years, 7 months ago (2017-04-28 15:00:23 UTC) #25
chongz
dtapuska@ I've renamed enum |InputEventState| to |ImplThreadPhase| according to our offline discussion. PTAL again, thanks! ...
3 years, 7 months ago (2017-04-28 19:21:21 UTC) #29
chongz
dtapuska@ Can you take a look at the new enum name please? Thanks!
3 years, 7 months ago (2017-05-01 19:14:23 UTC) #32
dtapuska
On 2017/05/01 19:14:23, chongz wrote: > dtapuska@ Can you take a look at the new ...
3 years, 7 months ago (2017-05-01 19:24:32 UTC) #33
chongz
sunnyps@ danakj@ PTAL at cc implementation, thanks!
3 years, 7 months ago (2017-05-01 19:26:33 UTC) #34
danakj
LGTM
3 years, 7 months ago (2017-05-03 17:20:13 UTC) #41
sunnyps
lgtm https://codereview.chromium.org/2841263002/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2841263002/diff/60001/cc/trees/layer_tree_host_impl.cc#newcode344 cc/trees/layer_tree_host_impl.cc:344: if (input_handler_client_ && impl_thread_phase_ == ImplThreadPhase::IDLE) nit: can ...
3 years, 7 months ago (2017-05-03 18:37:14 UTC) #42
chongz
https://codereview.chromium.org/2841263002/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2841263002/diff/60001/cc/trees/layer_tree_host_impl.cc#newcode344 cc/trees/layer_tree_host_impl.cc:344: if (input_handler_client_ && impl_thread_phase_ == ImplThreadPhase::IDLE) On 2017/05/03 18:37:13, ...
3 years, 7 months ago (2017-05-03 20:32:33 UTC) #45
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/2841263002/80001
3 years, 7 months ago (2017-05-03 20:59:35 UTC) #50
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 21:05:49 UTC) #53
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/a237ad2e80ec9ff5cf211b8f28bc...

Powered by Google App Engine
This is Rietveld 408576698