OSDN Git Service

Do not gate updating allDrawn on all child WindowStates.
authorBryce Lee <brycelee@google.com>
Thu, 6 Jul 2017 21:09:29 +0000 (14:09 -0700)
committerBryce Lee <brycelee@google.com>
Thu, 13 Jul 2017 02:10:54 +0000 (02:10 +0000)
commit6311c4b2e1d833bd63d36ed5c841364bcc597148
treee0fb8f5b46110be1156283f27de01b2ac575cdae
parent037503dfa02e1278f5d43b5710340f89e0ae379c
Do not gate updating allDrawn on all child WindowStates.

A recent change prevents allDrawn in AppWindowToken from being
updated until all child WindowStates have been considered. However,
children that are not visible do not affect allDrawn and therefore
need to be excluded.

This changelist adds an additional check to make sure the child can
affect the allDrawn state before considering blocking on it. It also
adds additional logs to the WindowState dump to better understand
this scenario.

Change-Id: I76d0f75496ed3da6a16c4a1d7bf2e7dc5b8bbe1e
Bug: 63380251
Test: go/wm-smoke
services/core/java/com/android/server/wm/AppWindowToken.java
services/core/java/com/android/server/wm/WindowState.java