summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2022-07-22 19:53:04 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2022-07-28 02:55:57 +0000
commit83aca38885df5030532c6dfe74a1fcef3ddfb432 (patch)
treeb017a7fafa52131769faca2c35f826cdcd723955 /libs/gui/BufferQueueThreadState.cpp
parent901a5975bb2ee30e11f565959c945f27350ef2c0 (diff)
Reland: Send WindowInfo even if the window isn't associated with a DisplayDevice
Previously reverted for b/240320932. Fixed broken test. The previous behavior was the following: If a window was in a layerStack for which there were no DisplayDevices that mapped to it, there was no WindowInfo sent for it. When a display is turned OFF, it is mapped to an invalid layer stack. So when the primary display is turned OFF, there is no WindowInfo sent for any windows on layerStack 0 as there are no DisplayDevices that now map to it. In this model, no window can receive input when the display is OFF. In this CL, we change the behavior so that WindowInfos are sent even if there are no DisplayDevices that map to its layerStack -- except that in this case, we do not let the window receive touches, as we do not have a valid transform associated with it. Bug: 239788987 Test: See bug for repro steps Test: Observe logs at runtime Test: atest libgui_tests Change-Id: Ib7e343685a0e3a87769883bdd5e24ac0e6d5e83f (cherry picked from commit da0f62ce866950a67decdfed0748458fdeff9257)
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions