commit | 995e4450f8ac9f8f96925511a74f476742b5e4af | [log] [tgz] |
---|---|---|
author | Xiyuan Xia <xiyuan@chromium.org> | Thu Sep 12 21:03:26 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 12 21:03:26 2024 |
tree | f674bf1f59dbde986df2217ac4b9139b04a355d7 | |
parent | 27cecf15c62ff8b22cfc644b7b45133ccb5b6b8b [diff] |
wm: Filter redundant WorkspaceLayoutManager::OnWindowActivated `WorkspaceLayoutManager` are created for all desk containers, always-on-top, and pip containers. As a result, OnWindowActivated is called multiple times for a single window activation change. In turn, it would call into expensive `UpdateShelfVisibility`. This CL adds filter logic and make it do nothing when neither `gained_active` nor `lost_active` is contained in the container of `WorkspaceLayoutManager`. Bug: 364961269, 265746505 Change-Id: I56e67b4b0ca7628f72119d696a93f4eeb825e66f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5855939 Reviewed-by: Xiaoqian Dai <xdai@chromium.org> Commit-Queue: Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1354812}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.