SyncStrategy


public 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 fields

default static final @NonNull SyncStrategy

SyncStrategy that will always create a SyncFenceCompat object

Public methods

abstract SyncFenceCompat

Conditionally generates a SyncFenceCompat based upon implementation.

Public fields

ALWAYS

default static final @NonNull SyncStrategy ALWAYS

SyncStrategy that will always create a SyncFenceCompat object

Public methods

createSyncFence

Added in 1.0.2
abstract SyncFenceCompat createSyncFence(@NonNull EGLSpec eglSpec)

Conditionally generates a SyncFenceCompat based upon implementation.

Parameters
@NonNull EGLSpec eglSpec

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