Suppress animation from some UI components.
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:Scott Violet <sky@chromium.org> Commit-Queue: Sang Woo Ko <sangwoo108@chromium.org> Cr-Commit-Position: refs/heads/master@{#633747}
Showing
Please register or sign in to comment