summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2021-10-18 08:42:46 -0700
committer Vishnu Nair <vishnun@google.com> 2021-10-18 08:44:33 -0700
commitcd52e2db6c57326c1380cd53e9520adc7faf5ec9 (patch)
tree00af6e96bb97ca397dac732d895ef789f4375847 /libs/gui/BLASTBufferQueue.cpp
parent6e461bf82436a0abb59da69c391aab77c72af028 (diff)
SurfaceFlinger: Fix duplicate callbacks
Transaction callbacks are emitted early, for empty transactions, after latch for on commit callbacks and on post composition for transaction complete callbacks. Pending callbacks are stored together. If a transaction contains a layer that is presented and a layer that is not presented, the transaction callback will get added to the pending list after the transaction is committed and it will get emitted after buffers are latched and then again at the end of composition. To fix this we make sure to only emit on commit callbacks after a buffer is latched. Test: atest SurfaceFlinger_test Bug: 202394221 Change-Id: I356fbf221812060c17765c53cc3df24cb3cd139a
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions