diff options
author | 2024-07-30 08:59:26 -0700 | |
---|---|---|
committer | 2024-09-17 18:17:48 +0000 | |
commit | af15fabf36de6b9a5ca9ed5ba1076bc9a9aa2da2 (patch) | |
tree | 28ff14a16f1b61e81de50e795f2f03798fc2ff95 /libs/gui/BLASTBufferQueue.cpp | |
parent | 18285555d474e299a20bf029ce890bce4d81b63e (diff) |
Pass an apply token to BBQ
Allow BBQ to use a passed in apply token for applying transactions. This
allows us to order transactions when a BBQ is recreated by sharing
the same apply token between the BBQs.
Flag: EXEMPT bugfix
Test: presubmit
Fixes: 353332587
Change-Id: Icbadce96e9f72f13a26c4430cdfadf6ea315ce84
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 94998e5ab7..c65eafa541 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -1266,6 +1266,11 @@ void BLASTBufferQueue::setTransactionHangCallback( mTransactionHangCallback = std::move(callback); } +void BLASTBufferQueue::setApplyToken(sp<IBinder> applyToken) { + std::lock_guard _lock{mMutex}; + mApplyToken = std::move(applyToken); +} + #if COM_ANDROID_GRAPHICS_LIBGUI_FLAGS(BUFFER_RELEASE_CHANNEL) BLASTBufferQueue::BufferReleaseReader::BufferReleaseReader( |