[dVRR] Call updateInfrequentCount after setCategoryFromCategoryCounts
In some use cases, the intermittent update state could be updated right after Views vote that causes inconsistency between the voted category and the category that is sent to SurfaceFlinger.
This Cl moves updateInfrequentCount after setCategoryFromCategoryCounts to avoid that. Although we need one more frame to change the intermittent update state, we can now ensure the consistency.
Fixes: 338173334
Test: atest ViewRootImplTest / atest ViewFrameRateTest`
Change-Id: I8eb775a45eb7bc5d3cb4a0f759525228296203dd
2 files changed