commit | 087d37481ea16f33f7e344b1ea184e51c667fda7 | [log] [tgz] |
---|---|---|
author | yuhui.zhang <yuhui.zhang@mediatek.com> | Sat Dec 11 15:23:52 2021 +0800 |
committer | Ady Abraham <adyabr@google.com> | Fri Jan 07 19:31:57 2022 +0000 |
tree | d1b479a5660b7cf6dd31103ec0b81de1bf834db5 | |
parent | 4a3ce08f40cad41ffabb6dc60a600d0d52525c77 [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