diff options
| author | 2019-06-12 17:11:12 -0700 | |
|---|---|---|
| committer | 2019-09-03 18:17:58 -0700 | |
| commit | 83127b7baf618b62d54ba1691330c13aee068ab0 (patch) | |
| tree | b1abc9a7d1aaa78d236f2b5b0251481981b7e0a0 /services/surfaceflinger/BufferQueueLayer.cpp | |
| parent | f8713e188492d30c0b7f8fd09ebab66cf7bc7646 (diff) | |
SurfaceFlinger: get present time from SF and not from Scheduler
SF hold the most accurate expected present time as it also knows
whether we are operating at negative offset and which vsync
we are targeting.
Bug: 133241520
Bug: 134589085
Test: systrace when scrolling
Change-Id: I934df3a8bf807b0e52555765a6861f252b69c0d1
(cherry picked from commit 8fe1102f1feec1aa8b9a00a22a3cab13166fff0d)
Merged-In: I934df3a8bf807b0e52555765a6861f252b69c0d1
Diffstat (limited to 'services/surfaceflinger/BufferQueueLayer.cpp')
| -rw-r--r-- | services/surfaceflinger/BufferQueueLayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/BufferQueueLayer.cpp b/services/surfaceflinger/BufferQueueLayer.cpp index 57f1008e85..d6853661a5 100644 --- a/services/surfaceflinger/BufferQueueLayer.cpp +++ b/services/surfaceflinger/BufferQueueLayer.cpp @@ -201,7 +201,7 @@ uint64_t BufferQueueLayer::getFrameNumber() const { uint64_t frameNumber = mQueueItems[0].mFrameNumber; // The head of the queue will be dropped if there are signaled and timely frames behind it - nsecs_t expectedPresentTime = mFlinger->mScheduler->expectedPresentTime(); + nsecs_t expectedPresentTime = mFlinger->getExpectedPresentTime(); if (isRemovedFromCurrentState()) { expectedPresentTime = 0; @@ -279,7 +279,7 @@ status_t BufferQueueLayer::updateTexImage(bool& recomputeVisibleRegions, nsecs_t getProducerStickyTransform() != 0, mName.string(), mOverrideScalingMode, getTransformToDisplayInverse(), mFreezeGeometryUpdates); - nsecs_t expectedPresentTime = mFlinger->mScheduler->expectedPresentTime(); + nsecs_t expectedPresentTime = mFlinger->getExpectedPresentTime(); if (isRemovedFromCurrentState()) { expectedPresentTime = 0; |