Commit 92df0578 authored by pkotwicz@chromium.org's avatar pkotwicz@chromium.org

Should use startAnimation in acceleratorController in order for the animator...

Should use startAnimation in acceleratorController in order for the animator to use the preemption strategy in starting the new animation.

scheduleAnimation will queue up animations. Holding down
Ctrl-Home will after a while keep on rotating well after the accelerator key has been released

Review URL: http://codereview.chromium.org/8741016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112246 0039d316-1c4b-4281-b951-d872f2087c98
parent 222471da
......@@ -64,7 +64,7 @@ void RotateScreen() {
scoped_ptr<ui::LayerAnimationSequence> screen_rotation(
new ui::LayerAnimationSequence(new ui::ScreenRotation(delta)));
screen_rotation->AddObserver(aura::Desktop::GetInstance());
aura::Desktop::GetInstance()->layer()->GetAnimator()->ScheduleAnimation(
aura::Desktop::GetInstance()->layer()->GetAnimator()->StartAnimation(
screen_rotation.release());
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment