diff options
| author | 2021-08-20 12:00:47 -0500 | |
|---|---|---|
| committer | 2021-11-24 23:39:02 +0000 | |
| commit | 3d8a31967b6b27581215c94b9d1471996e117e6a (patch) | |
| tree | c8d37c1ded8078e15ad139677823736cffba6ceb /libs/gui/BLASTBufferQueue.cpp | |
| parent | 11595687cb64ef66b390deaf9aca9f891423afd5 (diff) | |
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
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
| -rw-r--r-- | libs/gui/BLASTBufferQueue.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp index 39dd5d9552..ae61ea8b39 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -982,4 +982,9 @@ uint32_t BLASTBufferQueue::getLastTransformHint() const { } } +uint64_t BLASTBufferQueue::getLastAcquiredFrameNum() { + std::unique_lock _lock{mMutex}; + return mLastAcquiredFrameNumber; +} + } // namespace android |