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

Commit 330be7fa authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

Merge "surfaceflinger: Fix -Wunused-variable compiler warning" into main

parents 9285f28e 08d7c813
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -577,7 +577,8 @@ void Scheduler::addPresentFence(PhysicalDisplayId id, std::shared_ptr<FenceTime>
    if (!scheduleOpt) return;
    const auto& schedule = scheduleOpt->get();

    if (const bool needMoreSignals = schedule->getController().addPresentFence(std::move(fence))) {
    const bool needMoreSignals = schedule->getController().addPresentFence(std::move(fence));
    if (needMoreSignals) {
        schedule->enableHardwareVsync();
    } else {
        constexpr bool kDisallow = false;