Remove SSG timeout when SSG is complete
There's no need for a timeout when the SSG is done.
There have been a number of crashes that all seem to start from the
timeout being hit, but it's unclear where the issue is. Removing the
timeout when SSG completes may stop these crashes.
Test: SurfaceSyncGroupContinuousTest
Bug: 302686733
Change-Id: Iaab861d27ed139ba4c71d195ca3d0d98fc1b3d9e
diff --git a/core/java/android/window/SurfaceSyncGroup.java b/core/java/android/window/SurfaceSyncGroup.java
index 5d14698..eb9d62b 100644
--- a/core/java/android/window/SurfaceSyncGroup.java
+++ b/core/java/android/window/SurfaceSyncGroup.java
@@ -263,6 +263,7 @@
Trace.instantForTrack(Trace.TRACE_TAG_VIEW, mTrackName, "markSyncReady");
}
synchronized (mLock) {
+ toggleTimeout(false);
if (mHasWMSync) {
try {
WindowManagerGlobal.getWindowManagerService().markSurfaceSyncGroupReady(mToken);