commit | 3645e64d89f72af768134bd9e03b6db9a711a6f1 | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Tue Apr 20 18:39:00 2021 -0700 |
committer | Ady Abraham <adyabr@google.com> | Wed Apr 21 21:16:32 2021 +0000 |
tree | 08cf32b8038dc9e4707ee1b8f383c151fd945fd1 | |
parent | a8bfb932d3c2a1d950cd463d53d54977ac80b935 [diff] |
SF: wait instead of presenting early If SurfaceFlinger duration is configured to a larger value than the vsync period, there might be a chance that SF would present the frame too early, if its actual duration is much shorter than anticipating. To prevent this, we wait until the vsync occurs before calling to hwc::present. Bug: 185949581 Test: Configure large SF duration and observe systrace Change-Id: Ic0c112a2808036d0f2e14a345c401fa56c2d29ab