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

Commit 56cea287 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove the extra parameters in onCommitNotComposited" into main am: 13acbe3e

parents 9cd4f72e 13acbe3e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ struct ISchedulerCallback {
    virtual void onChoreographerAttached() = 0;
    virtual void onExpectedPresentTimePosted(TimePoint, ftl::NonNull<DisplayModePtr>,
                                             Fps renderRate) = 0;
    virtual void onCommitNotComposited(PhysicalDisplayId pacesetterDisplayId) = 0;
    virtual void onCommitNotComposited() = 0;
    virtual void vrrDisplayIdle(bool idle) = 0;

protected:
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ void Scheduler::onFrameSignal(ICompositor& compositor, VsyncId vsyncId,
            if (FlagManager::getInstance().vrr_config()) {
                compositor.sendNotifyExpectedPresentHint(pacesetterPtr->displayId);
            }
            mSchedulerCallback.onCommitNotComposited(pacesetterPtr->displayId);
            mSchedulerCallback.onCommitNotComposited();
            return;
        }
    }
+1 −1
Original line number Diff line number Diff line
@@ -4257,7 +4257,7 @@ void SurfaceFlinger::sendNotifyExpectedPresentHint(PhysicalDisplayId displayId)
    scheduleNotifyExpectedPresentHint(displayId);
}

void SurfaceFlinger::onCommitNotComposited(PhysicalDisplayId pacesetterDisplayId) {
void SurfaceFlinger::onCommitNotComposited() {
    if (FlagManager::getInstance().commit_not_composited()) {
        mFrameTimeline->onCommitNotComposited();
    }
+1 −1
Original line number Diff line number Diff line
@@ -691,7 +691,7 @@ private:
    void onChoreographerAttached() override;
    void onExpectedPresentTimePosted(TimePoint expectedPresentTime, ftl::NonNull<DisplayModePtr>,
                                     Fps renderRate) override;
    void onCommitNotComposited(PhysicalDisplayId pacesetterDisplayId) override
    void onCommitNotComposited() override
            REQUIRES(kMainThreadContext);
    void vrrDisplayIdle(bool idle) override;

+2 −2
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ struct SchedulerCallback final : ISchedulerCallback {
    MOCK_METHOD(void, onChoreographerAttached, (), (override));
    MOCK_METHOD(void, onExpectedPresentTimePosted, (TimePoint, ftl::NonNull<DisplayModePtr>, Fps),
                (override));
    MOCK_METHOD(void, onCommitNotComposited, (PhysicalDisplayId), (override));
    MOCK_METHOD(void, onCommitNotComposited, (), (override));
    MOCK_METHOD(void, vrrDisplayIdle, (bool), (override));
};

@@ -39,7 +39,7 @@ struct NoOpSchedulerCallback final : ISchedulerCallback {
    void kernelTimerChanged(bool) override {}
    void onChoreographerAttached() override {}
    void onExpectedPresentTimePosted(TimePoint, ftl::NonNull<DisplayModePtr>, Fps) override {}
    void onCommitNotComposited(PhysicalDisplayId) override {}
    void onCommitNotComposited() override {}
    void vrrDisplayIdle(bool) override {}
};