commit | 6f6016322c762ecb468aff5273bdf716c1adbb16 | [log] [tgz] |
---|---|---|
author | Nick Diego Yamane <nickdiego@igalia.com> | Wed Feb 13 09:00:06 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Feb 13 09:00:06 2019 |
tree | d2edd8c219b6acb6dc966b11aac2d964eb28e40a | |
parent | ef9a2972eaac2ba213701b564a34b57f5f61c8b9 [diff] |
ozone/wayland: Reuse tooltip subsurfaces This patch modifies WaylandWindow so that it reuses tooltip subsurfaces instead of recreating/destroying them every time show/hide functions are called. This change aims to boost performance of tooltips creation since we avoid recreating subsurfaces so frequently. Additionally, this avoids crashing compositors such as Sway [1], which is getting pretty popular and is known to have buggy implementation of subsurfaces handling [2]. For example, some sway crashes have been observed after focus -> unfocus -> focus again buttons with tooltips for example. This kind of issue haven't been observed anymore after this change. [1] https://swaywm.org [2] https://github.com/swaywm/sway/issues/3195 Bug: 578890 Change-Id: Ic27fb491c446f30f3d60633f4216b56799463896 Reviewed-on: https://chromium-review.googlesource.com/c/1466063 Commit-Queue: Nick Diego Yamane <nickdiego@igalia.com> Reviewed-by: Maksim Sisov <msisov@igalia.com> Cr-Commit-Position: refs/heads/master@{#631605}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .