lacros: Use Wayland server-side cursors for non-bitmap cursors
Use the zcr_cursor_shapes_v1 Wayland protocol extension to allow the exo server to set the cursor. Use this for standard cursors (pointer, hand) and animated cursors (progress, wait). Bitmap cursors continue to use the existing code path. Introduce a test API for WaylandConnection so we can mock out the WaylandZcrCursorShapes object. In addition to the automated tests, I tested manually on a Pixelbook (eve). High DPI cursors are sharp. Accessibility cursors work fine, including large cursor and cursor coloring. The cursor size is correct for multi-monitor window drags from high DPI to low DPI monitors and vice versa. All CSS cursors listed on the MDN CSS cursors page look correct: https://developer.mozilla.org/en-US/docs/Web/CSS/cursor Bug: 1143790 Test: added to ui_base_unittests and ozone_unittests Change-Id: Ic46fc083a0ec662edf40b370572e907a2877c59a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2516972 Auto-Submit: James Cook <jamescook@chromium.org> Reviewed-by:Michael Wasserman <msw@chromium.org> Reviewed-by:
Henrique Ferreiro <hferreiro@igalia.com> Reviewed-by:
Maksim Sisov (GMT+2) <msisov@igalia.com> Reviewed-by:
Mitsuru Oshima <oshima@chromium.org> Reviewed-by:
Antonio Gomes <tonikitoo@igalia.com> Commit-Queue: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#825133}
Showing
Please register or sign in to comment