commit | 41d67d7ab4da1c393497a620a116a854b3c618e7 | [log] [tgz] |
---|---|---|
author | Andy McFadden <fadden@android.com> | Fri Apr 25 16:58:34 2014 -0700 |
committer | Andy McFadden <fadden@android.com> | Fri May 02 10:56:54 2014 -0700 |
tree | 82c09ea2fd772f1c8e0b527f8bb45948ab9b92d8 | |
parent | c526c35e7398ad06185ea0575a976933b433441d [diff] [blame] |
Improve SurfaceFlinger PTS estimation Get the next refresh time from DispSync instead of guessing based on the current time. Change-Id: I8dc72a3217bfd4e9b4c905034194d1a298cad69a
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp index c4ea8cc..2d63bde 100644 --- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp +++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
@@ -821,7 +821,7 @@ return NO_ERROR; } -sp<Fence> HWComposer::getLastRetireFence(int32_t id) { +sp<Fence> HWComposer::getLastRetireFence(int32_t id) const { if (uint32_t(id)>31 || !mAllocatedDisplayIDs.hasBit(id)) return Fence::NO_FENCE; return mDisplayData[id].lastRetireFence;