• sangwoo.ko's avatar
    Suppress animation from some UI components. · 7f8c6946
    sangwoo.ko authored
    When gfx::Animation::ShouldRenderRichAnimation() returns false,
    we shouldn't do heavy animation. In favor of this, disable
    the following animations:
    
    * find bar
    * info bar
    * download shelf
    * bookmarks bar
    
    While doing this, fix a bug in gfx::SlideAnimtion::Hide().
    As the previous comment mentioned, we should pass 1.0
    to AnimateToState() in order to skip to the end of animation.
    The parameter represents the progress of each animation, not
    the value.
    
    Bug: 8944
    Change-Id: Ifc7d3ea8a5379d41f37cafa5a3094a0fe4555dd4
    Reviewed-on: https://chromium-review.googlesource.com/c/1457697Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Sang Woo Ko <sangwoo108@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#633747}
    7f8c6946
slide_animation.cc 3.35 KB