ozone: evdev: Factor device I/O out of EventFactoryOzone
commit5957ed6506d28c8310657416f728efdb93dea482
authorspang <spang@chromium.org>
Thu, 29 Jan 2015 00:05:01 +0000 (28 16:05 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 29 Jan 2015 00:06:01 +0000 (29 00:06 +0000)
tree75bc0bab1be6d42763b974f4cadd9d11f8b29718
parentb138032ecd37b1225ac200f561d6232d423dd89a
ozone: evdev: Factor device I/O out of EventFactoryOzone

This is part of a series moving IO on evdev devices to a fast thread,
since UI thread is too slow for the cursor.

This splits EventFactoryOzone into two parts: EventFactoryOzone and
InputDeviceFactoryOzone. The new InputDeviceFactoryOzone class is now the
device I/O-centric part, and is intended to exist on a low-latency thread.

Hotplug events still originate on the UI thread, but this is not a
problem because hotplug is not latency critical. We're sharing udev
with the display code, so its easiest leave that code alone for now.

This doesn't add a new thread yet. Everything still runs on the UI thread.

BUG=449710
TEST=boot link_freon & move mouse

Review URL: https://codereview.chromium.org/863353003

Cr-Commit-Position: refs/heads/master@{#313629}
ui/events/ozone/BUILD.gn
ui/events/ozone/evdev/event_factory_evdev.cc
ui/events/ozone/evdev/event_factory_evdev.h
ui/events/ozone/evdev/input_controller_evdev.cc
ui/events/ozone/evdev/input_controller_evdev.h
ui/events/ozone/evdev/input_device_factory_evdev.cc [copied from ui/events/ozone/evdev/event_factory_evdev.cc with 52% similarity]
ui/events/ozone/evdev/input_device_factory_evdev.h [new file with mode: 0644]
ui/events/ozone/events_ozone.gyp