Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4589209 authored by Su Hong Koo's avatar Su Hong Koo
Browse files

SF: Handle one-shot composition release fence

For instances like screenshots where there's going to be one shot
composition,there's not going to be a previous acquire fence nor a
present fence. This means that with the current implementation of
release fence merging, there's not going to be a release fence, which
would lead to immediate release.

This CL adds a special casing to detect when there's no fence from
merger of present fence and last client composition acquire fence. If
the merged fence is still a NO_FENCE, we try our best to return
something by using the current composition's acquire fence.

Bug: 435235974
Test: new libcompositionengine test case
Flag: com.android.graphics.surfaceflinger.flags.force_slower_follower_gpu_composition
Change-Id: I72a508e91e5ccdcd98e79dfd0be5489125345a42
parent 223cb44c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment