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

Unified Diff: ash/rotator/test/screen_rotation_animator_test_api.cc

Issue 2780823002: Uses copy request to flatten the layers to do screen rotation animation. (Closed)
Patch Set: Add tests for enable_smooth_screen_rotation code path. Created 3 years, 8 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/rotator/test/screen_rotation_animator_test_api.cc
diff --git a/ash/rotator/test/screen_rotation_animator_test_api.cc b/ash/rotator/test/screen_rotation_animator_test_api.cc
index 0c26e474efb6c8aefc78548e1b730d7a91a62036..102bc9ee4a6231721b6f0ebba263845dd8585f6e 100644
--- a/ash/rotator/test/screen_rotation_animator_test_api.cc
+++ b/ash/rotator/test/screen_rotation_animator_test_api.cc
@@ -21,6 +21,10 @@ void ScreenRotationAnimatorTestApi::DisableAnimationTimers() {
animator_->set_disable_animation_timers_for_test(true);
}
+void ScreenRotationAnimatorTestApi::EnableSmoothRotation() {
+ animator_->set_enable_smooth_rotation_for_test(true);
+}
+
std::vector<ui::LayerAnimator*>
ScreenRotationAnimatorTestApi::GetLayerAnimators() {
std::vector<ui::LayerAnimator*> animators;

Powered by Google App Engine
This is Rietveld 408576698