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

Issue 858333006: [PATCH 9.6/11] ozone: evdev: Remove extra PostTask during dispatch from EventFactoryEvdev (Closed)

Created:
5 years, 11 months ago by spang
Modified:
5 years, 10 months ago
CC:
chromium-reviews, kalyank, tdresser+watch_chromium.org, jdduke+watch_chromium.org, ozone-reviews_chromium.org, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -71 lines) Patch
M ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_test_util.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/event_dispatch_callback.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.h View 1 2 chunks +1 line, -7 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 2 3 4 6 chunks +46 lines, -49 lines 0 comments Download
M ui/events/ozone/evdev/input_injector_evdev_unittest.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M ui/events/ozone/evdev/keyboard_evdev.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
spang
5 years, 11 months ago (2015-01-26 22:44:12 UTC) #2
spang
5 years, 11 months ago (2015-01-27 19:35:12 UTC) #3
alexst (slow to review)
https://codereview.chromium.org/858333006/diff/1/ui/events/ozone/evdev/event_factory_evdev.cc File ui/events/ozone/evdev/event_factory_evdev.cc (right): https://codereview.chromium.org/858333006/diff/1/ui/events/ozone/evdev/event_factory_evdev.cc#newcode253 ui/events/ozone/evdev/event_factory_evdev.cc:253: void EventFactoryEvdev::DispatchUiEvent(Event* event) { Is there a reason we ...
5 years, 10 months ago (2015-01-28 19:04:59 UTC) #4
spang
https://codereview.chromium.org/858333006/diff/1/ui/events/ozone/evdev/event_factory_evdev.cc File ui/events/ozone/evdev/event_factory_evdev.cc (right): https://codereview.chromium.org/858333006/diff/1/ui/events/ozone/evdev/event_factory_evdev.cc#newcode253 ui/events/ozone/evdev/event_factory_evdev.cc:253: void EventFactoryEvdev::DispatchUiEvent(Event* event) { On 2015/01/28 19:04:58, alexst wrote: ...
5 years, 10 months ago (2015-01-28 19:38:06 UTC) #5
alexst (slow to review)
On 2015/01/28 19:38:06, spang wrote: > https://codereview.chromium.org/858333006/diff/1/ui/events/ozone/evdev/event_factory_evdev.cc > File ui/events/ozone/evdev/event_factory_evdev.cc (right): > > https://codereview.chromium.org/858333006/diff/1/ui/events/ozone/evdev/event_factory_evdev.cc#newcode253 > ...
5 years, 10 months ago (2015-01-28 19:43:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/858333006/80001
5 years, 10 months ago (2015-01-30 07:10:01 UTC) #8
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-01-30 07:46:26 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 07:47:14 UTC) #10
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6c31f290c1c22716e2138e72ed86aa615ba3674c
Cr-Commit-Position: refs/heads/master@{#313879}

Powered by Google App Engine
This is Rietveld 408576698