SF: add VSyncPredictor implementation
Adds an implementation of VSyncPredictor, an object that will
predict vsync events for multiple fixed-rate vsync systems.
The prediction is based on both the HWVsync signal and the
presentation fence timings for the VSyncDispatch object.
Bug: 140201379
Fixes: 140302888
Test: 13 new unit tests
Change-Id: I195902cc70561d028741d822e4001ad21ab391cf
diff --git a/services/surfaceflinger/Android.bp b/services/surfaceflinger/Android.bp
index 3d94918..4b71bd8 100644
--- a/services/surfaceflinger/Android.bp
+++ b/services/surfaceflinger/Android.bp
@@ -165,8 +165,9 @@
"Scheduler/PhaseOffsets.cpp",
"Scheduler/Scheduler.cpp",
"Scheduler/SchedulerUtils.cpp",
- "Scheduler/VSyncDispatchTimerQueue.cpp",
"Scheduler/Timer.cpp",
+ "Scheduler/VSyncDispatchTimerQueue.cpp",
+ "Scheduler/VSyncPredictor.cpp",
"Scheduler/VSyncModulator.cpp",
"StartPropertySetThread.cpp",
"SurfaceFlinger.cpp",