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
Loading
Please register or sign in to comment