summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2021-11-08 09:25:48 -0600
committer chaviw <chaviw@google.com> 2021-11-09 13:33:11 -0600
commit6b9ffea5e6bdc56c2a54bb6a1c8b18ee86ce8d48 (patch)
tree647f02f9706a3df31fcbdffe0909ed0f723d7e5c /libs/gui/BLASTBufferQueue.cpp
parent982775d747c7767b79b955dccf7f8ec9f400035d (diff)
Invoke commit callback after latch buffers
If commit callback is invoked before the buffers can be latched, they won't be included in the commit callback and would only be invoked in the complete callback. This defeats the purpose of the commit callback as an early indicator that the buffer has been committed. Move the commit callback invocation so it's after latchBuffers This also fixes a bug where offscreen layers could be latched in flushAndCommitTransactions, so only offscreen layers would get the commit callback. This would cause issues if the offscreen layer transaction was merged with a layer that was on screen, preventing the on screen layer from getting a commit callback. Test: LayerCallbackTest#CommitCallbackOffscreenLayer Test: BLASTBufferQueueTest Test: BLASTBufferQueueTransformTest Test: BLASTFrameEventHistoryTest Fixes: 205563588 Change-Id: I5692211dd7717258829be8eb8a68b2dcb4a5498d
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions