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

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

Issue 2790583004: Add second copy request after screen rotation to flatten the layers in animation. (Closed)
Patch Set: Fix nits and add docs. 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..4c3c502bcb6df6860a8886949863c947eab2ffb6 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_switch_smooth_rotation_for_test(true);
+}
+
std::vector<ui::LayerAnimator*>
ScreenRotationAnimatorTestApi::GetLayerAnimators() {
std::vector<ui::LayerAnimator*> animators;
@@ -28,6 +32,10 @@ ScreenRotationAnimatorTestApi::GetLayerAnimators() {
animators.insert(animators.end(),
animator_->old_layer_tree_owner_->root()->GetAnimator());
}
+ if (animator_->new_layer_tree_owner_) {
+ animators.insert(animators.end(),
+ animator_->new_layer_tree_owner_->root()->GetAnimator());
+ }
return animators;
}

Powered by Google App Engine
This is Rietveld 408576698