Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3981)

Unified Diff: ash/wm/maximize_mode/maximize_mode_controller.cc

Issue 302443005: Kill animations on screen rotation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/maximize_mode_controller.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_controller.cc b/ash/wm/maximize_mode/maximize_mode_controller.cc
index a969a91a07eca81e03746771c5cca4be2365de9f..05ea21600439bf442a66f0b14ee3db9900bb688b 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.cc
+++ b/ash/wm/maximize_mode/maximize_mode_controller.cc
@@ -298,6 +298,8 @@ void MaximizeModeController::HandleScreenRotation(const gfx::Vector3dF& lid) {
maximize_mode_engaged) {
SetDisplayRotation(display_manager,
new_rotation);
+ aura::Window* window(Shell::GetPrimaryRootWindow());
flackr 2014/05/26 20:36:45 Should get the internal display root window rather
+ window->layer()->GetAnimator()->StopAnimating();
}
}
@@ -308,6 +310,8 @@ void MaximizeModeController::SetDisplayRotation(
&in_set_screen_rotation_, true);
display_manager->SetDisplayRotation(gfx::Display::InternalDisplayId(),
rotation);
+ aura::Window* window(Shell::GetPrimaryRootWindow());
+ window->layer()->GetAnimator()->StopAnimating();
}
} // namespace ash
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698