public interface

GlTextureProducer.Listener

 androidx.media3.effect.GlTextureProducer.Listener

Overview

Listener for texture output.

Summary

Methods
public voidonTextureRendered(GlTextureProducer textureProducer, GlTextureInfo outputTexture, long presentationTimeUs, long syncObject)

Called when a texture has been rendered to.

Methods

public void onTextureRendered(GlTextureProducer textureProducer, GlTextureInfo outputTexture, long presentationTimeUs, long syncObject)

Called when a texture has been rendered to.

Parameters:

textureProducer: The GlTextureProducer that has rendered the texture.
outputTexture: The texture that has been rendered.
presentationTimeUs: The presentation time of the texture.
syncObject: A GL sync object that has been inserted into the GL command stream after the last write of the outputTexture. Value is 0 if and only if the failed.