Composition strategy prediction: Make broader predictions.
As of recently we have begun speculating on the composition strategy in cases where we expect GL composition to be present. This enables us to gain back main thread time by running chooseCompositionStrategy (sometimes a long call to HWC) in parallel with GL composition itself. Currently this is only enabled when no geometry changes. Unfortunately this doesn't help us a lot, since most of the cases where we have jank and issues with SF runtime are around animations. In this CL we try and expand the heuristic to cover more cases, including app launch. Now we expect that if we are sending the same output layers to HWC in the same order, and all we have changed is geometry, then the composition strategy will remain stable. We implement by hashing a subset of the values sent to HWC and detecting changes. Test: Existing tests pass. Play with phone lots, no mispredictions Merged-In: I1f41e2cc67b1b55780e1bf6e837d766b4c186161 Bug: 230617082 Change-Id: I1f41e2cc67b1b55780e1bf6e837d766b4c186161
Loading
Please register or sign in to comment