Hide Surface windows before removing them from the hierarchy.
This makes sure that the HIDDEN occlusion update is delivered when hiding the window, not when showing it later. Subsurface additions are processed at any time (not only commit), which means hidden windows can get added to the hierarchy. Their occlusion will be computed as hidden until the next CommitSurfaceHierarchy where they are made visible. This change moves that HIDDEN occlusion update to the time of hiding, rather than the time of showing. sent upon entering PIP, not leaving. Bug: 140563748 Test: Alt-tab to trigger PIP on Youtube. Occlusion fraction of 1.0 is Change-Id: I9a4a8f74bdaa0a55a65a6152b9df1232bd0e6e5c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1792041 Commit-Queue: Eliot Courtney <edcourtney@chromium.org> Reviewed-by:Mitsuru Oshima <oshima@chromium.org> Cr-Commit-Position: refs/heads/master@{#695077}
Showing
Please register or sign in to comment