summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Robert Carr <racarr@google.com> 2022-05-04 09:36:14 -0700
committer Rob Carr <racarr@google.com> 2022-05-12 20:30:14 +0000
commit0a2c43c7de31dd2b8d268d5fe5744c0b46d0ef93 (patch)
tree36f3ab98ebac96fdf8922d6b190cc42fbe19cde7 /services/surfaceflinger/RegionSamplingThread.cpp
parentf7f5aac06830d17a2c1337e0095fb9ddaf8a0314 (diff)
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
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions