[sf] Fix wakeup related to CE#needsAnotherUpdate
Layers track if they have a frame ready to be latched using hasReadyFrame. Once the buffer is latched for a layer, the states are cleared so hasReadyFrame is only true if we have another buffer to be latched (not possible) or if the auto refresh flag is set. In post composition, this flag is checked to schedule a commit. With the new frontend, we update the snapshot once every commit. This means hasReadyFrame should only track the auto refresh state. Bug: 238781169 Test: atest android.graphics.cts.FrameRateOverrideTest#testAppBackpressure --rerun-until-failure with mixed gsi builds Change-Id: I73fe6d69c5f34e4ce5d0efc6b7f39ae72c50b8aa
Loading
Please register or sign in to comment