Prevent waiting synchronous case if transaction applied first
Currently, transaction would be queued and apply in the main thread, if a given transaction would wish to apply synchronously. We may wait it in binder thread until the transaction has been applied, but if 'applyTransactionState' comes first, it would cause redundant waiting. To prevent this, we use the CountDownLatch in transaction to wait the synchronous state, it will wait until transactions applied and committed. Bug: 181480169 Test: libsurfaceflinger_unittest SurfaceFlinger_test libgui_test Change-Id: I1fe56296810cdeadeae5b37ae9b4bd00d9e689c3
Loading
Please register or sign in to comment