onone: dri: Synchronize the cursor state
commit7775119a43c7fbc76e8e4f0fb08512391586ad9f
authorspang <spang@chromium.org>
Sat, 17 Jan 2015 03:46:25 +0000 (16 19:46 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 17 Jan 2015 03:47:18 +0000 (17 03:47 +0000)
treef05eb20a531c4e7f643d575eafc92998979d9e65
parenta44dfbb96ad311b8221710de44dfb7601a06bdd3
onone: dri: Synchronize the cursor state

This is preparation for moving the cursor on a dedicated input thread.
Add a mutex to protect the state of the cursor, with the goal that
simple movement is possible without involving the UI thread.

Some operations such as changing the bitmap and moving the cursor
between windows must still be done on UI thread - the window & window
manager are not synchronized and not safe for use from other threads.

BUG=446184
TEST=manual on link_freon

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

Cr-Commit-Position: refs/heads/master@{#312018}
13 files changed:
ui/events/ozone/chromeos/cursor_controller.cc
ui/events/ozone/chromeos/cursor_controller.h
ui/ozone/platform/dri/dri_cursor.cc
ui/ozone/platform/dri/dri_cursor.h
ui/ozone/platform/dri/dri_gpu_platform_support_host.cc
ui/ozone/platform/dri/dri_gpu_platform_support_host.h
ui/ozone/platform/dri/dri_window.cc
ui/ozone/platform/dri/dri_window.h
ui/ozone/platform/dri/dri_window_delegate_impl.cc
ui/ozone/platform/dri/dri_window_manager.cc
ui/ozone/platform/dri/dri_window_manager.h
ui/ozone/platform/dri/ozone_platform_dri.cc
ui/ozone/platform/dri/ozone_platform_gbm.cc