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

Commit b310760b authored by Liz Prucka's avatar Liz Prucka Committed by Gerrit Code Review
Browse files

Merge "Error fix from enabling Clang thread-safety checks." into main

parents 616edb5a 81da2ab9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -304,7 +304,10 @@ public:
    RefreshRateSelector(const RefreshRateSelector&) = delete;
    RefreshRateSelector& operator=(const RefreshRateSelector&) = delete;

    const DisplayModes& displayModes() const { return mDisplayModes; }
    DisplayModes displayModes() const {
        std::lock_guard lock(mLock);
        return mDisplayModes;
    }

    // Returns whether switching modes (refresh rate or resolution) is possible.
    // TODO(b/158780872): Consider HAL support, and skip frame rate detection if the modes only