diff options
author | Andy McFadden <fadden@android.com> | 2014-04-25 16:58:34 -0700 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2014-05-02 10:56:54 -0700 |
commit | 41d67d7ab4da1c393497a620a116a854b3c618e7 (patch) | |
tree | 82c09ea2fd772f1c8e0b527f8bb45948ab9b92d8 /services/surfaceflinger/DisplayHardware | |
parent | c526c35e7398ad06185ea0575a976933b433441d (diff) | |
download | frameworks_native-41d67d7ab4da1c393497a620a116a854b3c618e7.zip frameworks_native-41d67d7ab4da1c393497a620a116a854b3c618e7.tar.gz frameworks_native-41d67d7ab4da1c393497a620a116a854b3c618e7.tar.bz2 |
Improve SurfaceFlinger PTS estimation
Get the next refresh time from DispSync instead of guessing based
on the current time.
Change-Id: I8dc72a3217bfd4e9b4c905034194d1a298cad69a
Diffstat (limited to 'services/surfaceflinger/DisplayHardware')
-rw-r--r-- | services/surfaceflinger/DisplayHardware/HWComposer.cpp | 2 | ||||
-rw-r--r-- | services/surfaceflinger/DisplayHardware/HWComposer.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ status_t HWComposer::setOutputBuffer(int32_t id, const sp<Fence>& acquireFence, 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; diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.h b/services/surfaceflinger/DisplayHardware/HWComposer.h index 9218bf6..e93bb7e 100644 --- a/services/surfaceflinger/DisplayHardware/HWComposer.h +++ b/services/surfaceflinger/DisplayHardware/HWComposer.h @@ -142,7 +142,7 @@ public: // signal when the h/w composer is completely finished with the frame. // For physical displays, it is no longer being displayed. For virtual // displays, writes to the output buffer are complete. - sp<Fence> getLastRetireFence(int32_t id); + sp<Fence> getLastRetireFence(int32_t id) const; /* * Interface to hardware composer's layers functionality. |