Add a copy request after screen rotation to flatten the layers in animation

Desktop / Chromium - wutao [chromium.org] - 19 April 2017 22:17 EDT

Currently we use all the layers after rotation to do animation during screen rotation. The solution is using compositor copy request to flatten the layer hierarchy and make animations more efficient.

BUG=678763 TEST=Unittest and Manual

Review-Url: https://codereview.chromium.org/2790583004 Cr-Commit-Position: refs/heads/master@{#465864}

6d39411 Add a copy request after screen rotation to flatten the layers in animation.
ash/BUILD.gn | 2 +
ash/display/display_configuration_controller.cc | 11 -
ash/display/display_configuration_controller.h | 9 +-
.../display_configuration_controller_unittest.cc | 11 +-
ash/display/root_window_transformers.cc | 76 +---
ash/rotator/screen_rotation_animator.cc | 389 ++++++++++++---------
ash/rotator/screen_rotation_animator.h | 63 +++-
ash/rotator/screen_rotation_animator_unittest.cc | 268 ++++++++++++--
.../test/screen_rotation_animator_test_api.cc | 4 +
ash/utility/transformer_util.cc | 56 +++
ash/utility/transformer_util.h | 26 ++
testing/buildbot/filters/ash_mus_unittests.filter | 21 +-
12 files changed, 622 insertions(+), 314 deletions(-)

Upstream: git.chromium.org


  • Share