EGLExt

public class EGLExt
extends Object

java.lang.Object
   ↳ android.opengl.EGLExt


EGL Extensions

Summary

Constants

int EGL_CONTEXT_FLAGS_KHR

int EGL_CONTEXT_MAJOR_VERSION_KHR

int EGL_CONTEXT_MINOR_VERSION_KHR

int EGL_NO_NATIVE_FENCE_FD_ANDROID

int EGL_OPENGL_ES3_BIT_KHR

int EGL_RECORDABLE_ANDROID

int EGL_SYNC_NATIVE_FENCE_ANDROID

int EGL_SYNC_NATIVE_FENCE_FD_ANDROID

int EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID

Public constructors

EGLExt()

Public methods

static SyncFence eglDupNativeFenceFDANDROID(EGLDisplay display, EGLSync sync)

Retrieves the SyncFence for an EGLSync created with EGL_SYNC_NATIVE_FENCE_ANDROID See EGL_ANDROID_native_fence_sync extension for more details

static boolean eglPresentationTimeANDROID(EGLDisplay dpy, EGLSurface sur, long time)

Inherited methods

Constants

EGL_CONTEXT_FLAGS_KHR

Added in API level 18
public static final int EGL_CONTEXT_FLAGS_KHR

Constant Value: 12540 (0x000030fc)

EGL_CONTEXT_MAJOR_VERSION_KHR

Added in API level 18
public static final int EGL_CONTEXT_MAJOR_VERSION_KHR

Constant Value: 12440 (0x00003098)

EGL_CONTEXT_MINOR_VERSION_KHR

Added in API level 18
public static final int EGL_CONTEXT_MINOR_VERSION_KHR

Constant Value: 12539 (0x000030fb)

EGL_NO_NATIVE_FENCE_FD_ANDROID

Added in API level 33
public static final int EGL_NO_NATIVE_FENCE_FD_ANDROID

Constant Value: -1 (0xffffffff)

EGL_OPENGL_ES3_BIT_KHR

Added in API level 18
public static final int EGL_OPENGL_ES3_BIT_KHR

Constant Value: 64 (0x00000040)

EGL_RECORDABLE_ANDROID

Added in API level 26
public static final int EGL_RECORDABLE_ANDROID

Constant Value: 12610 (0x00003142)

EGL_SYNC_NATIVE_FENCE_ANDROID

Added in API level 33
public static final int EGL_SYNC_NATIVE_FENCE_ANDROID

Constant Value: 12612 (0x00003144)

EGL_SYNC_NATIVE_FENCE_FD_ANDROID

Added in API level 33
public static final int EGL_SYNC_NATIVE_FENCE_FD_ANDROID

Constant Value: 12613 (0x00003145)

EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID

Added in API level 33
public static final int EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID

Constant Value: 12614 (0x00003146)

Public constructors

EGLExt

public EGLExt ()

Public methods

eglDupNativeFenceFDANDROID

Added in API level 33
public static SyncFence eglDupNativeFenceFDANDROID (EGLDisplay display, 
                EGLSync sync)

Retrieves the SyncFence for an EGLSync created with EGL_SYNC_NATIVE_FENCE_ANDROID See EGL_ANDROID_native_fence_sync extension for more details

Parameters
display EGLDisplay: The EGLDisplay connection This value cannot be null.

sync EGLSync: The EGLSync to fetch the SyncFence from This value cannot be null.

Returns
SyncFence A SyncFence representing the native fence. * If is not a valid sync object for , an invalid SyncFence is returned and an EGL_BAD_PARAMETER error is generated. * If the EGL_SYNC_NATIVE_FENCE_FD_ANDROID attribute of is EGL_NO_NATIVE_FENCE_FD_ANDROID, an invalid SyncFence is returned and an EGL_BAD_PARAMETER error is generated. * If does not match the display passed to eglCreateSync when was created, the behaviour is undefined. This value cannot be null.

eglPresentationTimeANDROID

Added in API level 18
public static boolean eglPresentationTimeANDROID (EGLDisplay dpy, 
                EGLSurface sur, 
                long time)

Parameters
dpy EGLDisplay

sur EGLSurface

time long

Returns
boolean