SF: Predict HWC composition strategy
Asynchronously run ValidateDisplay to determine client composition strategy. If we can predict that the composition strategy will not change from frame to frame (for example by looking at whether the geometry of the layers is changing), the hwc call is run asynchronously with the gpu composition. If the result of the call is incorrectly predicted, the gpu composition is rerun. ValidateDisplay can take multiple milliseconds to complete and by making it non-blocking in cases where we can predict the strategy chosen by the hardware, we can jump start the client composition and shave valuable milliseconds from the frame time. This feature is disabled by default. Test: perfetto traces Bug: 220031739 Change-Id: Ib4dcc0e055d5272c89cfff853211edac73aa449b
Loading
Please register or sign in to comment