Optimize removal of non-overview windows in WindowSelectorController
WindowSelectorController::ToggleOverview used to do 3 removal loops over the active window list, one of which did a search through another window list for each window. This reduces the runtime complexity (a single removal loop) and makes the code easier to read (having fewer conditions). Bug: None Change-Id: I06ddf20b5ef3be57da4660de849bffeb4935683b Reviewed-on: https://chromium-review.googlesource.com/934974Reviewed-by:Xiaoqian Dai <xdai@chromium.org> Commit-Queue: Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/master@{#538869}
Showing
Please register or sign in to comment