Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d8a3196 authored by chaviw's avatar chaviw Committed by Rob Carr
Browse files

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
parent 11595687
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -982,4 +982,9 @@ uint32_t BLASTBufferQueue::getLastTransformHint() const {
    }
}

uint64_t BLASTBufferQueue::getLastAcquiredFrameNum() {
    std::unique_lock _lock{mMutex};
    return mLastAcquiredFrameNumber;
}

} // namespace android
+2 −0
Original line number Diff line number Diff line
@@ -110,6 +110,8 @@ public:
    uint32_t getLastTransformHint() const;
    void flushShadowQueue();

    uint64_t getLastAcquiredFrameNum();

    virtual ~BLASTBufferQueue();

private: