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

Commit 08d7c813 authored by Yi Kong's avatar Yi Kong
Browse files

surfaceflinger: Fix -Wunused-variable compiler warning

Test: presubmit
Change-Id: I72a7d888cbaee4dd782ec43c1fc130669d9eb2ac
parent edf5d0fd
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;