ozone: evdev: Add dedicated events thread
commitbe9342d2b87b41a865fa9672577b98d1ef8e2816
authorspang <spang@chromium.org>
Fri, 30 Jan 2015 20:38:15 +0000 (30 12:38 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 30 Jan 2015 20:39:24 +0000 (30 20:39 +0000)
tree871826ae2bc7782a9b134c1a54c096764f1a5b24
parent32a19e6ad65292e1efc67986e6a61c0f29e393d3
ozone: evdev: Add dedicated events thread

This creates a new thread for polling evdev on, and moves the
InputDeviceFactoryEvdev object onto that thread. We'll use this new
thread to avoid UI-thread jank affecting the cursor.

BUG=449710
TEST=boot link_freon & move cursor with simulated UI jank.
     cursor moves while UI thread is stalled.

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

Cr-Commit-Position: refs/heads/master@{#313981}
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/event_thread_evdev.cc [new file with mode: 0644]
ui/events/ozone/evdev/event_thread_evdev.h [new file with mode: 0644]
ui/events/ozone/evdev/input_device_factory_evdev_proxy.h
ui/events/ozone/events_ozone.gyp