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

Skip to content
Commit e2c31ef3 authored by Chavi Weingarten's avatar Chavi Weingarten
Browse files

Add timeouts for SurfaceSyncGroup

Ensure there are timeouts in case something goes wrong with each level
of the SurfaceSyncGroup. It's better to timeout and not blocking all
dependant SSGs.

The timeouts are the following:
1. VRI has a timeout when it has mPausedForSync > 0. If the timeout is
   invoked, that means someone was holding the SurfaceSyncGroup for VRI
   without adding it to any SurfaceSyncGroup.

2. If a SurfaceSyncGroup has been added as a child or a parent of
   another SurfaceSyncGroup, it will get a timeout set. This is because
   it can now affect other SSG and we don't want them blocking others.
   If they are a standalone SSG, we don't care if they don't complete
   since it only affects itself.

Test: SurfaceSyncGroupTest
Bug: 237804605
Change-Id: I1a7886f8d51764b82d8eb0408433f5d77d2299cc
parent 3521df06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment