• Ahmed Fakhry's avatar
    Make shelf bounds stable during tablet mode transition. · 0d76dcaf
    Ahmed Fakhry authored
    The shelf config needs to be updated at the "starting" phase
    of the tablet mode transition, so that they remain stable
    during the animation. Otherwise, if the shelf bounds change
    during the animation, the display work-area bounds will change
    leading to many re-layouts, which will hurt the animation
    smoothness.
    
    BUG=1044316
    TEST=Run the tast test: ui.TabletTransitionPerf and make sure
    the animation smoothness is back to its normal value.
    
    Change-Id: Ia376cba2d9ca624ee762da18e1bbe11a70257dfc
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2020616Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
    Commit-Queue: Ahmed Fakhry <afakhry@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#735169}
    0d76dcaf
shelf_config.cc 11.2 KB