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

Unified Diff: ash/content/display/screen_orientation_controller_chromeos.cc

Issue 975943002: Implemented screen rotation animation experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed outstanding comments from Patch set 1 & 2. Created 5 years, 9 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
Index: ash/content/display/screen_orientation_controller_chromeos.cc
diff --git a/ash/content/display/screen_orientation_controller_chromeos.cc b/ash/content/display/screen_orientation_controller_chromeos.cc
index 1480cfbb9beb06f5c28b38133f5b9d7df2270c64..d8896fbd95dd658da8d7f637f2e9f993152e009f 100644
--- a/ash/content/display/screen_orientation_controller_chromeos.cc
+++ b/ash/content/display/screen_orientation_controller_chromeos.cc
@@ -7,6 +7,7 @@
#include "ash/ash_switches.h"
#include "ash/display/display_info.h"
#include "ash/display/display_manager.h"
+#include "ash/rotator/screen_rotation_animator.h"
#include "ash/shell.h"
#include "ash/wm/maximize_mode/maximize_mode_controller.h"
#include "base/auto_reset.h"
@@ -113,8 +114,8 @@ void ScreenOrientationController::SetDisplayRotation(
current_rotation_ = rotation;
base::AutoReset<bool> auto_ignore_display_configuration_updates(
&ignore_display_configuration_updates_, true);
- display_manager->SetDisplayRotation(gfx::Display::InternalDisplayId(),
- rotation);
+ ash::ScreenRotationAnimator(gfx::Display::InternalDisplayId())
+ .Rotate(rotation);
}
void ScreenOrientationController::OnWindowActivated(aura::Window* gained_active,

Powered by Google App Engine
This is Rietveld 408576698