Merge "Set timeouts for SurfaceSyncGroup based on HW timeout" into udc-dev
This commit is contained in:
@@ -11626,7 +11626,8 @@ public final class ViewRootImpl implements ViewParent,
|
||||
|
||||
mNumPausedForSync++;
|
||||
mHandler.removeMessages(MSG_PAUSED_FOR_SYNC_TIMEOUT);
|
||||
mHandler.sendEmptyMessageDelayed(MSG_PAUSED_FOR_SYNC_TIMEOUT, 1000);
|
||||
mHandler.sendEmptyMessageDelayed(MSG_PAUSED_FOR_SYNC_TIMEOUT,
|
||||
1000 * Build.HW_TIMEOUT_MULTIPLIER);
|
||||
return mActiveSurfaceSyncGroup;
|
||||
};
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ import android.annotation.Nullable;
|
||||
import android.annotation.UiThread;
|
||||
import android.os.Binder;
|
||||
import android.os.BinderProxy;
|
||||
import android.os.Build;
|
||||
import android.os.Debug;
|
||||
import android.os.Handler;
|
||||
import android.os.HandlerThread;
|
||||
@@ -62,7 +63,7 @@ public final class SurfaceSyncGroup {
|
||||
private static final int MAX_COUNT = 100;
|
||||
|
||||
private static final AtomicInteger sCounter = new AtomicInteger(0);
|
||||
private static final int TRANSACTION_READY_TIMEOUT = 1000;
|
||||
private static final int TRANSACTION_READY_TIMEOUT = 1000 * Build.HW_TIMEOUT_MULTIPLIER;
|
||||
|
||||
private static Supplier<Transaction> sTransactionFactory = Transaction::new;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user