summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author Lloyd Pique <lpique@google.com> 2018-05-31 11:43:52 -0700
committer Lloyd Pique <lpique@google.com> 2018-05-31 15:04:52 -0700
commita07f6cd717e98e354e9eb06a36bdb7ee5798a808 (patch)
tree784cff921edd7f16e391ad5479ed6bfd7508e958 /libs/gui/SurfaceControl.cpp
parent3e3d28ccab0e7c60176026c18f89cb899ad92d5d (diff)
Fix VrFlinger handoff
In aosp/613510, hotplug processing was moved to main thread and deferred the actual display devices creation to the next cycle of SurfaceFlinger's main thread. This breaks UpdateVrFlinger logic, which runs on the main thread and assumes all new display devices get created synchronously during the handoff. This CL fixes the issue by allowing synchronous calling processDisplayHotplugEventsLocked() from onHotplugReceived() if and only if the callback is called on main thread. Bug: 72103899 Test: VrApp now renders fine Change-Id: I2abd5d5861e0bb74419f12142f7f7c33190a022c Merged-In: I2abd5d5861e0bb74419f12142f7f7c33190a022c (cherry picked from commit ccfd682b5280fe638d4e0b4c7841c98aab298788)
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
0 files changed, 0 insertions, 0 deletions