commit | 3d8a31967b6b27581215c94b9d1471996e117e6a | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Fri Aug 20 12:00:47 2021 -0500 |
committer | Rob Carr <racarr@google.com> | Wed Nov 24 23:39:02 2021 +0000 |
tree | c8d37c1ded8078e15ad139677823736cffba6ceb | |
parent | 11595687cb64ef66b390deaf9aca9f891423afd5 [diff] [blame] |
Added getLastAcquiredFrameNum This will allow VRI to ask BBQ what buffer was actually acquired on the last draw. Test: blast sync Bug: 195262673 Bug: 193634619 Change-Id: I492651e8e6d333ef11b682cec939d81057ae197d Merged-In: I492651e8e6d333ef11b682cec939d81057ae197d
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp index 39dd5d9..ae61ea8 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp
@@ -982,4 +982,9 @@ } } +uint64_t BLASTBufferQueue::getLastAcquiredFrameNum() { + std::unique_lock _lock{mMutex}; + return mLastAcquiredFrameNumber; +} + } // namespace android