Set aura::Window transparency in SurfaceTreeHost::UpdateHostWindowBounds().
SurfaceTreeHost::UpdateHostWindowBounds() used to call ui::Layer::SetFillsBoundsOpaquely() directly. With this CL, the method is called through aura::Window::SetTransparent(). This is equivalent, except that the |transparent_| bit of the aura::Window, on which aura::WindowOcclusionTracker depends, is also updated. This CL also adds a ScopedPauseOcclusionTracking instance to ensure that occlusion isn't recomputed multiple times during a call to SurfaceTreeHost::UpdateHostWindowBounds(). Bug: 668690 Change-Id: I4f6181d4e247f2a54d96569b3379964c9253246a Reviewed-on: https://chromium-review.googlesource.com/970746Reviewed-by:David Reveman <reveman@chromium.org> Commit-Queue: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#544362}
Showing
Please register or sign in to comment