OSDN Git Service

Fix race condition in BoundsAnimationController
authorWinson Chung <winsonc@google.com>
Mon, 16 Jul 2018 19:42:37 +0000 (12:42 -0700)
committerWinson Chung <winsonc@google.com>
Tue, 17 Jul 2018 23:06:59 +0000 (23:06 +0000)
commit3749a052c9890b114a7286ce4961f3894d776c54
treeb70d3c5270c171ffac9990dde901b7a9703ec2f3
parent12485d1f333cfee798cc2a3b075255db2c810216
Fix race condition in BoundsAnimationController

- The SfVsyncFrameCallbackProvider needs to be initialized with the
  associated handler thread's Choreographer instance.

Bug: 111465953
Test: Take a systrace and ensure the animation is running on the right
      thread

Change-Id: Ia70b09d391fd2d154e00d081cfcf0d2354e51db2
services/core/java/com/android/server/wm/BoundsAnimationController.java
services/core/java/com/android/server/wm/WindowManagerService.java