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

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

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

parents 9333e35a 7171a46f
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -100,7 +100,9 @@ struct TestableRefreshRateSelector : RefreshRateSelector {
    const std::vector<Fps>& knownFrameRates() const { return mKnownFrameRates; }

    using RefreshRateSelector::GetRankedFrameRatesCache;
    auto& mutableGetRankedRefreshRatesCache() { return mGetRankedFrameRatesCache; }
    auto& mutableGetRankedRefreshRatesCache() NO_THREAD_SAFETY_ANALYSIS {
        return mGetRankedFrameRatesCache;
    }

    auto getRankedFrameRates(const std::vector<LayerRequirement>& layers,
                             GlobalSignals signals = {}, Fps pacesetterFps = {}) const {
@@ -138,7 +140,9 @@ struct TestableRefreshRateSelector : RefreshRateSelector {
        return setPolicy(policy);
    }

    const auto& getPrimaryFrameRates() const { return mPrimaryFrameRates; }
    const auto& getPrimaryFrameRates() const NO_THREAD_SAFETY_ANALYSIS {
        return mPrimaryFrameRates;
    }
};

class RefreshRateSelectorTest : public testing::TestWithParam<Config::FrameRateOverride> {