SF: Reduce present fence work

Optimizes the implementation of previousFramePending to only call into
the sync driver once (rather than 2-3 times).

Test: atest libsurfaceflinger_unittest
Bug: 153112939
Change-Id: I79cc96c6bf6aa4e94d79157431caa432f2652b9a
1 file changed