summaryrefslogtreecommitdiff
path: root/libs/hwui/HardwareBitmapUploader.cpp
diff options
context:
space:
mode:
author Nick Chameyev <nickchameyev@google.com> 2023-04-27 11:27:56 +0000
committer Nick Chameyev <nickchameyev@google.com> 2023-05-30 10:53:42 +0000
commitb2c876b56785f74e174dad8d6cff70ad144123dc (patch)
treea1d1f81af3cfbdebef32a6af0b94ae7e053bab20 /libs/hwui/HardwareBitmapUploader.cpp
parentc42b01e3e268188afeae01193d0720dbc813bd1e (diff)
Synchronize device state update and display update callbacks
Adds a call from DisplayManager to WindowManager that notifies WindowManager just before applying the device state to the displays. This is needed so we can guarantee the order of the callbacks on the WindowManager side: now the device state callback should be always executed before display change callbacks. This should fix race conditions in PhysicalDisplaySwitchTransitionLauncher where sometimes mIsFolded wasn't updated before display switch and DisplayRotation where seems like we could have a similar issue. Test: atest DisplayManagerServiceTest Test: manual fold/unfolds Bug: 278040168 Change-Id: I82e297309125d8fda2e3ea3687971d345db2c0cd
Diffstat (limited to 'libs/hwui/HardwareBitmapUploader.cpp')
0 files changed, 0 insertions, 0 deletions