• Francois Doray's avatar
    Set aura::Window transparency in SurfaceTreeHost::UpdateHostWindowBounds(). · 71f63e24
    Francois Doray authored
    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: default avatarDavid Reveman <reveman@chromium.org>
    Commit-Queue: François Doray <fdoray@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#544362}
    71f63e24
surface_tree_host.cc 12.7 KB