diff options
| author | 2021-03-29 14:13:16 +0000 | |
|---|---|---|
| committer | 2021-03-29 14:13:16 +0000 | |
| commit | 4fd10d8d132754131911593ebde6281931e5f54b (patch) | |
| tree | 14cd960dc59389ef3db0120f19feaddb8dac3175 /libs/gui/BLASTBufferQueue.cpp | |
| parent | 15e58709c6d3bf3e00acfd92281c61af4ac55fa0 (diff) | |
| parent | aad6cf53e8cf0f527d2ef0415922f04ad1b8680f (diff) | |
Merge "Clear transaction that's passed to mergeWithNextTransaction" into sc-dev
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
| -rw-r--r-- | libs/gui/BLASTBufferQueue.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp index 8da97bbbf9..1976b493b2 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -606,7 +606,9 @@ void BLASTBufferQueue::mergeWithNextTransaction(SurfaceComposerClient::Transacti // Apply the transaction since we have already acquired the desired frame. t->apply(); } else { - mPendingTransactions.emplace_back(frameNumber, std::move(*t)); + mPendingTransactions.emplace_back(frameNumber, *t); + // Clear the transaction so it can't be applied elsewhere. + t->clear(); } } |