summaryrefslogtreecommitdiff
path: root/libs/battery/LongArrayMultiStateCounterTest.cpp
diff options
context:
space:
mode:
author yuhui.zhang <yuhui.zhang@mediatek.com> 2021-12-11 15:23:52 +0800
committer Robert Chou <robertchou@google.com> 2022-01-11 08:48:52 +0000
commit57fc3d60dc96e8542b0b1fd89e89dcd402e01460 (patch)
treec8e2577ada4237ac3603950601705f34784dc98d /libs/battery/LongArrayMultiStateCounterTest.cpp
parent40c7ef8df88007f1108135f17db1f41c085ef1b8 (diff)
Do not handle VSync event during resolution switch
When there is a resolution switch, SurfaceFlinger will handle as display changes. If the VSync comes before the display is ready, the access to the display will bring exception. Solution: Add mutex lock between onComposerHalVsync() and setActiveModeInternal(). Bug: 210378166 Test: run cts-on-gsi -m CtsDisplayTestCases Change-Id: Ide53b0e5cff3b569593a2ed388d0ea66e0002e9d Merged-In: Ide53b0e5cff3b569593a2ed388d0ea66e0002e9d
Diffstat (limited to 'libs/battery/LongArrayMultiStateCounterTest.cpp')
0 files changed, 0 insertions, 0 deletions