SyncStrategy


interface SyncStrategy

Known direct subclasses
FrontBufferSyncStrategy

SyncStrategy implementation that optimizes for front buffered rendering use cases.


A strategy class for deciding how to utilize SyncFenceCompat within FrameBufferRenderer.RenderCallback. SyncStrategy provides default strategies for usage:

SyncStrategy.ALWAYS will always create a SyncFenceCompat to pass into the render callbacks for FrameBufferRenderer

Summary

Public companion properties

SyncStrategy

SyncStrategy that will always create a SyncFenceCompat object

Public functions

SyncFenceCompat?

Conditionally generates a SyncFenceCompat based upon implementation.

Public companion properties

ALWAYS

val ALWAYSSyncStrategy

SyncStrategy that will always create a SyncFenceCompat object

Public functions

createSyncFence

Added in 1.0.0-rc01
fun createSyncFence(eglSpec: EGLSpec): SyncFenceCompat?

Conditionally generates a SyncFenceCompat based upon implementation.

Parameters
eglSpec: EGLSpec

an EGLSpec object to dictate the version of EGL and make EGL calls.