OSDN Git Service

SF: more DispSync improvements.
authorHaixia Shi <hshi@google.com>
Wed, 28 Oct 2015 23:19:01 +0000 (16:19 -0700)
committerHaixia Shi <hshi@google.com>
Fri, 30 Oct 2015 20:16:33 +0000 (13:16 -0700)
commit676b1f6ed0d637b7eb1858361e0d09068f26e9fa
tree3c10e0560a60afa533ba7d28ba066a0ee4208047
parent664339a8e8d3f2d5acd5728dae666cc9a14e08f3
SF: more DispSync improvements.

Pass the reference time to DispSyncThread. Since the phase offset is calculated
using timestamps relative to the reference time, we must also adjust the phase
offset by the same reference time when computing the next refresh time.

Always reset phase offset to zero when updating the reference time because the
reference time equals the first timestamp.

After beginResync() we need to keep HW vsync enabled until the model is updated.

Bug: 25113115
Change-Id: I8eae227bee91c24a99bf8e57fbebceb98d29c77d
Test: check in systrace that app/sf vsync events have correct phase
services/surfaceflinger/DispSync.cpp
services/surfaceflinger/DispSync.h