File tree Expand file tree Collapse file tree
services/surfaceflinger/tests/unittests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,7 +100,9 @@ struct TestableRefreshRateSelector : RefreshRateSelector {
100100 const std::vector<Fps>& knownFrameRates () const { return mKnownFrameRates ; }
101101
102102 using RefreshRateSelector::GetRankedFrameRatesCache;
103- auto & mutableGetRankedRefreshRatesCache () { return mGetRankedFrameRatesCache ; }
103+ auto & mutableGetRankedRefreshRatesCache () NO_THREAD_SAFETY_ANALYSIS {
104+ return mGetRankedFrameRatesCache ;
105+ }
104106
105107 auto getRankedFrameRates (const std::vector<LayerRequirement>& layers,
106108 GlobalSignals signals = {}, Fps pacesetterFps = {}) const {
@@ -138,7 +140,9 @@ struct TestableRefreshRateSelector : RefreshRateSelector {
138140 return setPolicy (policy);
139141 }
140142
141- const auto & getPrimaryFrameRates () const { return mPrimaryFrameRates ; }
143+ const auto & getPrimaryFrameRates () const NO_THREAD_SAFETY_ANALYSIS {
144+ return mPrimaryFrameRates ;
145+ }
142146};
143147
144148class RefreshRateSelectorTest : public testing ::TestWithParam<Config::FrameRateOverride> {
You can’t perform that action at this time.
0 commit comments