summaryrefslogtreecommitdiff
path: root/libs/ui/DebugUtils.cpp
diff options
context:
space:
mode:
author Steven Thomas <steventhomas@google.com> 2018-03-20 15:40:48 -0700
committer Steven Thomas <steventhomas@google.com> 2018-03-22 22:43:06 +0000
commit3bed0524e31f5f1844909006d952ff72196b98a2 (patch)
treeb2ab7447ee56b0ef8517226cbe2ac658d2c255a2 /libs/ui/DebugUtils.cpp
parenta46412ea433d5dae175ad3e471368a44747171a2 (diff)
Fix frozen screen after exiting vr
When a hotplug connected event occurs, don't recreate any already-existing entries in mBuiltinDisplays. This fixes a problem where the screen would freeze after exiting vr. In the future, we may want to use hotplug connected events to notify surface flinger to reinitialize display state. This CL includes a change to the code in HWC2.cpp to always reinitialize the display state when we get a hotplug connected event, even if the display is already connected. Bug: 74985350 Test: - Confirmed exiting vr no longer freezes the screen. - Added code to simulate a hotplug connected event while the device is running, to test the changes in HWC2.cpp. Confirmed the device continued to function normally. Change-Id: I6afda67cae84842b2568c773e6b5aa4f38df6a96 Merged-In: I6afda67cae84842b2568c773e6b5aa4f38df6a96
Diffstat (limited to 'libs/ui/DebugUtils.cpp')
0 files changed, 0 insertions, 0 deletions