OSDN Git Service

Always enable vsync thread when requested by surfaceflinger
authorMichael Goffioul <michael.goffioul@lincor.com>
Wed, 9 Oct 2019 15:58:16 +0000 (11:58 -0400)
committerMichael Goffioul <michael.goffioul@lincor.com>
Wed, 9 Oct 2019 15:58:16 +0000 (11:58 -0400)
commit2b29f0e5e42b70bac8a849f9f65ebdccc37ac2a4
treead40e6ea461e4ed311b291d67b738c020cb311b8
parentd38f15c94573bb0ec4eeebdc28d911095218adf2
Always enable vsync thread when requested by surfaceflinger

There is an issue with surfaceflinger at startup whereby it needs at
least 2 vsync events in order to compute the vsync period. If these
events do not come after 1s timeout, it'll fake a vsync event, leading
to a crash (mod-by-0 exception due to vsync period being 0).
DrmDisplay.cpp