Fix name for FrameCacheGlShaderProgram

This implements `GlShaderProgram` (and is GL-specific).

PiperOrigin-RevId: 513528160
This commit is contained in:
andrewlewis 2023-03-02 15:09:31 +00:00 committed by tonihei
parent ae4471debf
commit a28b691ced
2 changed files with 3 additions and 3 deletions

View File

@ -52,6 +52,6 @@ public final class FrameCache implements GlEffect {
@Override @Override
public GlShaderProgram toGlShaderProgram(Context context, boolean useHdr) public GlShaderProgram toGlShaderProgram(Context context, boolean useHdr)
throws VideoFrameProcessingException { throws VideoFrameProcessingException {
return new FrameCacheShaderProgram(context, capacity, useHdr); return new FrameCacheGlShaderProgram(context, capacity, useHdr);
} }
} }

View File

@ -35,7 +35,7 @@ import java.util.concurrent.Executor;
* *
* <p>Implements {@link FrameCache}. * <p>Implements {@link FrameCache}.
*/ */
/* package */ final class FrameCacheShaderProgram implements GlShaderProgram { /* package */ final class FrameCacheGlShaderProgram implements GlShaderProgram {
private static final String VERTEX_SHADER_TRANSFORMATION_ES2_PATH = private static final String VERTEX_SHADER_TRANSFORMATION_ES2_PATH =
"shaders/vertex_shader_transformation_es2.glsl"; "shaders/vertex_shader_transformation_es2.glsl";
private static final String FRAGMENT_SHADER_TRANSFORMATION_ES2_PATH = private static final String FRAGMENT_SHADER_TRANSFORMATION_ES2_PATH =
@ -53,7 +53,7 @@ import java.util.concurrent.Executor;
private Executor errorListenerExecutor; private Executor errorListenerExecutor;
/** Creates a new instance. */ /** Creates a new instance. */
public FrameCacheShaderProgram(Context context, int capacity, boolean useHdr) public FrameCacheGlShaderProgram(Context context, int capacity, boolean useHdr)
throws VideoFrameProcessingException { throws VideoFrameProcessingException {
freeOutputTextures = new ArrayDeque<>(); freeOutputTextures = new ArrayDeque<>();
inUseOutputTextures = new ArrayDeque<>(); inUseOutputTextures = new ArrayDeque<>();