TextureViewRenderThread#eventQueue should be LinkedList (#3397)

This commit is contained in:
Vladimir Tagakov
2025-04-15 15:23:11 -06:00
committed by GitHub
parent 88fd774e67
commit 48d0691a8a

View File

@@ -7,7 +7,7 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.UiThread;
import java.util.ArrayList;
import java.util.LinkedList;
/**
* The render thread is responsible for managing the communication between the
@@ -24,7 +24,7 @@ abstract class TextureViewRenderThread extends Thread implements TextureView.Sur
protected final Object lock = new Object();
// Guarded by lock
protected final ArrayList<Runnable> eventQueue = new ArrayList<>();
protected final LinkedList<Runnable> eventQueue = new LinkedList<>();
@Nullable
protected SurfaceTexture surfaceTexture;
protected boolean hasNativeSurface;