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

Commit 025af291 authored by Alec Mouri's avatar Alec Mouri
Browse files

Explicitly state that SurfaceTexture is not a TextureView-only concept

Bug: 242347605
Test: none
Change-Id: Ia9359e933a1836930ae3d6f59c6a110717fa30c9
parent 9fbfb01e
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