Fixed a few issues with blast sync with SurfaceView
If SurfaceView changed and needs to update its SurfaceControl, it will append its changes to the main window's blast sync transaction. This is to ensure it can synchronize with the main window. However, if SV changes, but the main window doesn't need to submit a new frame, the logic to synchronize doesn't work. This changes fixes a few issues 1. Make sure to force a full redraw when mNextDrawUseBLASTSyncTransaction. This is to ensure we get the proper callbacks even if there's no new content to draw 2. Clear nextTransaction in BBQ when a frameCompleteCallback is invoked. In most cases the transaction in BBQ is already cleared since the frameCompleteCallback is called after a frame is latched and BBQ will clear the nextTransaction that was set. This is needed when hwui won't draw a new frame since there's nothing new to draw. In that case, we will get an immediate frameCompleteCallback without invoking the processNextBuffer. If VRI doesn't clear the transaction, BBQ will try to use the stale transaction when a new frame does come in Test: blast sync in SV enabled doesn't freeze YT Bug: 172579592 Change-Id: Idca7accdf094dbb4585897e4e884c1147b1a2cd0
Loading
Please register or sign in to comment