Loading services/surfaceflinger/DisplayHardware/HWComposer.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -540,8 +540,9 @@ status_t HWComposer::getDeviceCompositionChanges( displayData.validateWasSkipped = false; { std::scoped_lock lock{displayData.expectedPresentLock}; if (expectedPresentTime > displayData.lastExpectedPresentTimestamp.ns()) { displayData.lastExpectedPresentTimestamp = TimePoint::fromNs(expectedPresentTime); // TODO(b/296636176) Update displayData.lastFrameInterval for present display commands } } if (canSkipValidate) { Loading Loading @@ -965,6 +966,11 @@ status_t HWComposer::notifyExpectedPresentIfRequired(PhysicalDisplayId displayId isExpectedPresentWithinTimeout(expectedPresentTime, lastExpectedPresentTimestamp, timeoutOpt, threshold); using fps_approx_ops::operator!=; if (frameIntervalIsOnCadence && frameInterval != lastFrameInterval) { displayData.lastExpectedPresentTimestamp = expectedPresentTime; } if (expectedPresentWithinTimeout && frameIntervalIsOnCadence) { return NO_ERROR; } Loading Loading
services/surfaceflinger/DisplayHardware/HWComposer.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -540,8 +540,9 @@ status_t HWComposer::getDeviceCompositionChanges( displayData.validateWasSkipped = false; { std::scoped_lock lock{displayData.expectedPresentLock}; if (expectedPresentTime > displayData.lastExpectedPresentTimestamp.ns()) { displayData.lastExpectedPresentTimestamp = TimePoint::fromNs(expectedPresentTime); // TODO(b/296636176) Update displayData.lastFrameInterval for present display commands } } if (canSkipValidate) { Loading Loading @@ -965,6 +966,11 @@ status_t HWComposer::notifyExpectedPresentIfRequired(PhysicalDisplayId displayId isExpectedPresentWithinTimeout(expectedPresentTime, lastExpectedPresentTimestamp, timeoutOpt, threshold); using fps_approx_ops::operator!=; if (frameIntervalIsOnCadence && frameInterval != lastFrameInterval) { displayData.lastExpectedPresentTimestamp = expectedPresentTime; } if (expectedPresentWithinTimeout && frameIntervalIsOnCadence) { return NO_ERROR; } Loading