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

Commit f8f24354 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Explicitly state that SurfaceTexture is not a TextureView-only concept" into main

parents 9101bd1d 025af291
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.view.Surface;
import android.view.TextureView;

import java.lang.ref.WeakReference;

@@ -44,6 +45,10 @@ import java.lang.ref.WeakReference;
 * frames from the image stream to be sent to the SurfaceTexture object rather than to the device's
 * display.
 *
 * <p>A typical pattern is to use SurfaceTexture to render frames to a {@link TextureView}; however,
 * a TextureView is not <i>required</i> for using the texture object. The texture object may be used
 * as part of an OpenGL ES shader.
 *
 * <p>When sampling from the texture one should first transform the texture coordinates using the
 * matrix queried via {@link #getTransformMatrix(float[])}.  The transform matrix may change each
 * time {@link #updateTexImage} is called, so it should be re-queried each time the texture image