commit | ed66a3586c303cd580f3dfc5d3eb40bfcddba568 | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Thu Mar 23 17:55:43 2023 -0400 |
committer | Leon Scroggins III <scroggo@google.com> | Fri Mar 24 11:40:13 2023 -0400 |
tree | d2fe39f8a1013d42383a108001b1db8f89d52423 | |
parent | 6fc45193c591c124c59bbd2263618bc8b518d9c4 [diff] [blame] |
EventThread: add annotations for mVsyncSchedule Split out from patch set 1 of Ieb05fc3abcf4fc20f04ea5d3595da70155de2df5. Now that mVsyncSchedule can be changed, document that is guarded by mMutex. Bug: 272943830 Test: make Change-Id: Ie4e492fa667687b36f648b566e13552f96f0d559
diff --git a/services/surfaceflinger/Scheduler/EventThread.cpp b/services/surfaceflinger/Scheduler/EventThread.cpp index 57661f1..74665a7 100644 --- a/services/surfaceflinger/Scheduler/EventThread.cpp +++ b/services/surfaceflinger/Scheduler/EventThread.cpp
@@ -525,7 +525,7 @@ bool EventThread::shouldConsumeEvent(const DisplayEventReceiver::Event& event, const sp<EventThreadConnection>& connection) const { - const auto throttleVsync = [&] { + const auto throttleVsync = [&]() REQUIRES(mMutex) { const auto& vsyncData = event.vsync.vsyncData; if (connection->frameRate.isValid()) { return !mVsyncSchedule->getTracker()