runWhenGpuFinished

abstract fun runWhenGpuFinished(action: () -> Unit)(source)

Runs action once the GPU has finished the commands issued so far, use it to release a DMA-BUF only after the GPU is done sampling it