OSDN Git Service

Avoid redundant setMatrix calls from setMatrixInTransaction
authorMatthew Bouyack <mbouyack@google.com>
Mon, 24 Oct 2016 21:01:26 +0000 (14:01 -0700)
committerMatthew Bouyack <mbouyack@google.com>
Mon, 24 Oct 2016 23:09:15 +0000 (16:09 -0700)
commit8dd88f649b0cee33588a154a942195c0920d59a1
treefd51f3ca651b31b8456ec72679afc91fa6736602
parent593f9cdde081631edf57433c8372d03a2e688126
Avoid redundant setMatrix calls from setMatrixInTransaction
This matches the behavior of setPositionInTransaction and setSizeInTransaction.

By eliminating calls to setMatrix, we avoid triggering redundant
SurfaceFlinger invalidates. This is particularly noteworthy on Android
Wear where we must update the minute hand every 60 seconds, but want the
device to spend as much time sleeping as possible.

See b/31489482

Change-Id: I424bb9f60c3033921fa04e7abcfc552500114f1f
services/core/java/com/android/server/wm/WindowSurfaceController.java