SurfaceFlinger: support negative phase offset

Store the last 2 present frames to accommodate negative phase offsets.

Test: systrace
Bug: 130191039
Change-Id: Ie4460d4a1b14a2a12f5d2f3c1542e0b837cb761c
6 files changed