[ozone/wayland] Fixed buffer handling in the WaylandCursor class.
The visual shape of a pointer cursor is rendered at a surface attached to the wl_pointer object and backed by a wl_buffer. The WaylandCursor class tried to reuse the buffer regardless of whether the compositor released it, which resulted in that the cursor shape didn't change when a new bitmap had been submitted. This CL simplifies the process: a new buffer is created and attached each time the new bitmap is submitted, and the old ones are held until the compositor releases them. R=msisov@igalia.com Bug: 928260 Change-Id: I54cf679568276eddbd5c8042d05fe05de25f61d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1503374 Commit-Queue: Alexander Dunaev <adunaev@igalia.com> Reviewed-by:Maksim Sisov <msisov@igalia.com> Cr-Commit-Position: refs/heads/master@{#638521}
Showing
Please register or sign in to comment