diff options
| author | 2021-08-20 12:00:47 -0500 | |
|---|---|---|
| committer | 2021-09-02 16:41:34 -0500 | |
| commit | 0b020f857920d49b8fc421dceea40182865ef336 (patch) | |
| tree | dd9d054304eb7d370fd038e13c7bd613a418cf53 /libs/gui/BLASTBufferQueue.cpp | |
| parent | e0c7426d8e52171f9652817388d7ec0dfebc43b5 (diff) | |
Added getLastAcquiredFrameNum
This will allow VRI to ask BBQ what buffer was actually acquired on the
last draw.
Test: blast sync
Bug: 195262673
Change-Id: 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 e5a2151f13..33335aacb5 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -837,4 +837,9 @@ uint32_t BLASTBufferQueue::getLastTransformHint() const { } } +uint64_t BLASTBufferQueue::getLastAcquiredFrameNum() { + std::unique_lock _lock{mMutex}; + return mLastAcquiredFrameNumber; +} + } // namespace android |