Fixed MaximizeModeWindowState::UpdateWindowPosition(...) to not animate incorrectly.
commitbbe5bb16c1c1f1adc3ea477e2929871664f7e323
authorbruthig <bruthig@chromium.org>
Fri, 27 Mar 2015 21:19:10 +0000 (27 14:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 27 Mar 2015 21:19:56 +0000 (27 21:19 +0000)
tree483f98652f4ad915a63221af8fc9d1ce30f85983
parent14bab52bbe1d8bf33034300f741d44cfacb27d06
Fixed MaximizeModeWindowState::UpdateWindowPosition(...) to not animate incorrectly.

Screen rotation animations were slow and janky on low end hardware. This was due to animations being incorrectly initiated on the window bounds changed events.

TEST=Compared animation behavior pre-change and post-change for maximizable & non-maximizable windows when entering and exiting Touchview.  Tested after opening windows when Touchview was active and when it was not.

BUG=471341

Review URL: https://codereview.chromium.org/1043543002

Cr-Commit-Position: refs/heads/master@{#322643}
ash/wm/maximize_mode/maximize_mode_window_manager.cc
ash/wm/maximize_mode/maximize_mode_window_state.cc
ash/wm/maximize_mode/maximize_mode_window_state.h