Descriptioncros: Fix unlock crash with multi-display
SessionController::RunUnlockAnimation expects the callback to be
invoked only once. SessionStateAnimatorImpl uses the callback per
animation per container. Mulit-display would have multiple containers
involved hence multiple animation and callbacks. The multiple
callback would cause a mojo CHECK failure. SessionStateAnimator
should only run the callback once after all animations finish.
The CL use a BarrierClosure to combine the animation callbacks.
BUG=712422
TEST=SessionStateAnimatiorImplContainersTest.AnimationCallbackOnMultiDisplay
Review-Url: https://codereview.chromium.org/2823343006
Cr-Commit-Position: refs/heads/master@{#465670}
Committed: https://chromium.googlesource.com/chromium/src/+/52558bf8b2796a8e97c73a2351e23a1f8c45e423
Patch Set 1 #Patch Set 2 : fix typo #
Total comments: 4
Patch Set 3 : add comment for test #
Messages
Total messages: 15 (9 generated)
|