Skip to content
Commit ccfbcb81 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Clean unnecessary lock of WindowAnimator#animate

Reduce the invocation of thread priority booster and
monitor-enter/exit.

- The prohibition of lock was introduced in commits
  9b19fd42 and 836dac49, but since commit 32fd84ac that
  enabled lock free app animations on surface animation
  thread, the original WindowAnimator#animate is safe
  to be put in WM global lock.
- All invocations of open/closeSurfaceTransaction are
  inside WM global lock.

Bug: 139522754
Test: atest WindowTest
Change-Id: Idb11b4e5bc3b982341d86cad33f6c23253d0d0d9
parent 34e727ec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment