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

Commit aabfce69 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "SF: do not wait for LastCompositeEventThread if it is not used" into main

parents 00c0848d 16490fdb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -346,7 +346,9 @@ private:
    // Used to skip event dispatch before EventThread creation during boot.
    // TODO: b/241285191 - Reorder Scheduler initialization to avoid this.
    bool hasEventThreads() const {
        return CC_LIKELY(mRenderEventThread && mLastCompositeEventThread);
        return CC_LIKELY(
                mRenderEventThread &&
                (FlagManager::getInstance().deprecate_vsync_sf() || mLastCompositeEventThread));
    }

    EventThread& eventThreadFor(Cycle cycle) const {