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

Commit 0b020f85 authored by chaviw's avatar chaviw
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
Change-Id: I492651e8e6d333ef11b682cec939d81057ae197d
parent e0c7426d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -837,4 +837,9 @@ uint32_t BLASTBufferQueue::getLastTransformHint() const {
    }
}

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

} // namespace android
+1 −0
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ public:
    void setSidebandStream(const sp<NativeHandle>& stream);

    uint32_t getLastTransformHint() const;
    uint64_t getLastAcquiredFrameNum();

    virtual ~BLASTBufferQueue();