Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06b6e6bb authored by Su Hong Koo's avatar Su Hong Koo Committed by Android (Google) Code Review
Browse files

Merge "SF: Feed presentation fences to external displays' vsync predictors" into main

parents d9a1a057 e67937fe
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -3459,14 +3459,8 @@ void SurfaceFlinger::onCompositionPresented(PhysicalDisplayId pacesetterId,
    mTimeStats->setPresentFenceGlobal(pacesetterPresentFenceTime);

    for (auto&& [id, presentFence] : presentFences) {
        ftl::FakeGuard guard(mStateLock);
        const bool isInternalDisplay =
                mPhysicalDisplays.get(id).transform(&PhysicalDisplay::isInternal).value_or(false);

        if (isInternalDisplay) {
        mScheduler->addPresentFence(id, std::move(presentFence));
    }
    }

    const bool hasPacesetterDisplay =
            pacesetterDisplay && getHwComposer().isConnected(pacesetterId);