Descriptionozone: evdev: Remove extra PostTask during dispatch from EventFactoryEvdev
Since device processing is moved off-thread, we can't enter the device
code from nested UI message loops. So we can remove the task hop in
PostUiEvent and dispatch synchronously.
WarpCursorTo() did need update to do its own post, as it is the last
remaining case of dispatch that doesn't start in its own task. Everything
else already posts in ForwardingDeviceEventDispatcher.
We can stack-allocate the ui::Events now, too. They previously needed
heap allocation to extend their lifetime through the task hop.
BUG=449710
TEST=boot link_freon & move mouse
Committed: https://crrev.com/6c31f290c1c22716e2138e72ed86aa615ba3674c
Cr-Commit-Position: refs/heads/master@{#313879}
Patch Set 1 #
Total comments: 2
Patch Set 2 : rebase #Patch Set 3 : add comment to DispatchUiEvent #Patch Set 4 : update comments #Patch Set 5 : rebase #
Messages
Total messages: 10 (2 generated)
|