Fix name for FrameCacheGlShaderProgram
This implements `GlShaderProgram` (and is GL-specific). PiperOrigin-RevId: 513528160
This commit is contained in:
parent
ae4471debf
commit
a28b691ced
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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<>();
|
Loading…
x
Reference in New Issue
Block a user