• Jun Mukai's avatar
    Separate the opacity of AppsContainerView and PageSwitcher · 34276fa2
    Jun Mukai authored
    My CL r681543 removed the layer for PageSwitcher and reused
    a new AppsContainerView's layer, but it turned out this was wrong
    since the opacity of parent layer affects the descendent layer
    opacities.
    
    This CL revives the PageSwitcher layer to recover the original
    behavior of the opacity when dragging the app-list. Since all of
    AppsContainerView's children have their own layers, this is okay
    to be ui::LAYER_NOT_DRAWN and hence it won't affect the drawing
    performance.
    
    Bug: 988494
    Test: manually
    Change-Id: If1913b5fa426b7ee63bb25ac7fef180375cdd30d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1722408Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
    Commit-Queue: Jun Mukai <mukai@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#681903}
    34276fa2
page_switcher.cc 9.44 KB