We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 616edb5 + 81da2ab commit b310760Copy full SHA for b310760
1 file changed
services/surfaceflinger/Scheduler/RefreshRateSelector.h
@@ -304,7 +304,10 @@ class RefreshRateSelector {
304
RefreshRateSelector(const RefreshRateSelector&) = delete;
305
RefreshRateSelector& operator=(const RefreshRateSelector&) = delete;
306
307
- const DisplayModes& displayModes() const { return mDisplayModes; }
+ DisplayModes displayModes() const {
308
+ std::lock_guard lock(mLock);
309
+ return mDisplayModes;
310
+ }
311
312
// Returns whether switching modes (refresh rate or resolution) is possible.
313
// TODO(b/158780872): Consider HAL support, and skip frame rate detection if the modes only
0 commit comments