Call applyTransactionOnDraw when removing SV
When SV is detached, we will try to clean up the SurfaceControls. However, we want the clean up to be synced with the main app window. This is to ensure we don't remove SV's SC before the app window draws in the hole punched area. Instead of relying on postionLost to synchronize with the main app window, we can use applyTransactionOnDraw to ensure the next frame will merge the remove transaction. Therefore, we no longer have to call remove in positionLost since it's already handled elsewhere. Test: No flicker when removing SV Bug: 199860472 Change-Id: I93a91c45c862949e53ee9fd1b4a3b10404fba6bb
Loading
Please register or sign in to comment