Revert "Reland "wm: Improve cross fade animation.""
This reverts commit 4370f074. Reason for revert: Causing HomeToOverviewNudgeControllerTest.NudgeHiddenDuringShowAnimation to fail. https://ci.chromium.org/p/chromium/builders/ci/linux-chromeos-rel/38470 https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8878645531766485392/+/steps/ash_unittests/0/logs/Deterministic_failure:_HomeToOverviewNudgeControllerTest.NudgeHiddenDuringShowAnimation__status_CRASH_/0 Original change's description: > Reland "wm: Improve cross fade animation." > > This is a reland of 3abaa7f0. > > Changes: Now that the observer observes the new layer, on window > destroying or removing from root window we should stop animating the > new window as well. > > Original change's description: > > wm: Improve cross fade animation. > > > > *Destroy old layer when new layer animation is aborted. > > *Only log histograms once after animation. > > > > The old layer is owned by a observer which does not know when the new > > layer is being aborted. Change this so that the observer observers the > > new layer and destroys the old layer accordingly. > > > > The pass animations reporter will be used for every LayerAnimationElement, > > for cross fade, we animate opacity in addition to transform when the old > > bounds is wider than the new bounds. This results in double counting, > > which skews the smoothness numbers as animating two properties should be > > slower. > > > > Test: manual, ash_unittests WindowAnimationsTest.CrossFadeHistograms > > Bug: 868170, 1087460 > > Change-Id: I3bc5b597e8109a3e87f432f6aa352ba94860f8ed > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2218557 > > Reviewed-by: Mitsuru Oshima <oshima@chromium.org> > > Commit-Queue: Sammie Quon <sammiequon@chromium.org> > > Cr-Commit-Position: refs/heads/master@{#773397} > > Bug: 868170, 1087460, 1088169 > Change-Id: I3a2f6af334ca0cd325e49107e812824f7a39340e > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2224990 > Reviewed-by: Mitsuru Oshima <oshima@chromium.org> > Commit-Queue: Sammie Quon <sammiequon@chromium.org> > Cr-Commit-Position: refs/heads/master@{#773921} TBR=oshima@chromium.org,sammiequon@chromium.org Change-Id: I043c684a88133cf6210c5b2d53ecd3d31583bc2a No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 868170, 1087460, 1088169 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2226004Reviewed-by:Giovanni Ortuño Urquidi <ortuno@chromium.org> Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org> Cr-Commit-Position: refs/heads/master@{#774021}
Showing
Please register or sign in to comment