Remove usages of global transaction
The performSurfacePlacement will prepare the operation in the pending transaction and then let WindowAnimator apply it with vsync. Since there are only few usages of global transaction, the transaction applied from performSurfacePlacement is almost only from DisplayContent#prepareSurface, so it is more efficient to centralize with WindowAnimator. This can reduce an IPC to surfaceflinger in every surface placement, which should eliminate one of major cost. Bug: 159103089 Test: CtsWindowManagerDeviceActivity Change-Id: I67e4e58aced78a2f36163178a64ca55d3c77e6f3
Loading
Please register or sign in to comment