EGLExt


public class EGLExt
extends Object

java.lang.Object
   ↳ android.opengl.EGLExt


EGL Extensions

Summary

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

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

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