GlTextureProducer.Listener


interface GlTextureProducer.Listener


Listener for texture output.

Summary

Public functions

Unit
onTextureRendered(
    textureProducer: GlTextureProducer!,
    outputTexture: GlTextureInfo!,
    presentationTimeUs: Long,
    syncObject: Long
)

Called when a texture has been rendered to.

Public functions

onTextureRendered

fun onTextureRendered(
    textureProducer: GlTextureProducer!,
    outputTexture: GlTextureInfo!,
    presentationTimeUs: Long,
    syncObject: Long
): Unit

Called when a texture has been rendered to.

Parameters
textureProducer: GlTextureProducer!

The GlTextureProducer that has rendered the texture.

outputTexture: GlTextureInfo!

The texture that has been rendered.

presentationTimeUs: Long

The presentation time of the texture.

syncObject: Long

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 glFenceSync failed.