Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/opengl/EGLExt#constants) \| [Ctors](https://developer.android.com/reference/android/opengl/EGLExt#pubctors) \| [Methods](https://developer.android.com/reference/android/opengl/EGLExt#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/opengl/EGLExt#inhmethods)

# EGLExt

*** ** * ** ***

` public class EGLExt `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.opengl.EGLExt |

<br />

*** ** * ** ***

EGL Extensions

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/opengl/EGLExt#EGL_CONTEXT_FLAGS_KHR` <br /> |
| `int` | `https://developer.android.com/reference/android/opengl/EGLExt#EGL_CONTEXT_MAJOR_VERSION_KHR` <br /> |
| `int` | `https://developer.android.com/reference/android/opengl/EGLExt#EGL_CONTEXT_MINOR_VERSION_KHR` <br /> |
| `int` | `https://developer.android.com/reference/android/opengl/EGLExt#EGL_NO_NATIVE_FENCE_FD_ANDROID` <br /> |
| `int` | `https://developer.android.com/reference/android/opengl/EGLExt#EGL_OPENGL_ES3_BIT_KHR` <br /> |
| `int` | `https://developer.android.com/reference/android/opengl/EGLExt#EGL_RECORDABLE_ANDROID` <br /> |
| `int` | `https://developer.android.com/reference/android/opengl/EGLExt#EGL_SYNC_NATIVE_FENCE_ANDROID` <br /> |
| `int` | `https://developer.android.com/reference/android/opengl/EGLExt#EGL_SYNC_NATIVE_FENCE_FD_ANDROID` <br /> |
| `int` | `https://developer.android.com/reference/android/opengl/EGLExt#EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID` <br /> |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/opengl/EGLExt#EGLExt()() ` |

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/android/hardware/SyncFence` | ` https://developer.android.com/reference/android/opengl/EGLExt#eglDupNativeFenceFDANDROID(android.opengl.EGLDisplay,%20android.opengl.EGLSync)(https://developer.android.com/reference/android/opengl/EGLDisplay display, https://developer.android.com/reference/android/opengl/EGLSync sync) ` Retrieves the SyncFence for an EGLSync created with EGL_SYNC_NATIVE_FENCE_ANDROID See [EGL_ANDROID_native_fence_sync](https://www.khronos.org/registry/EGL/extensions/ANDROID/EGL_ANDROID_native_fence_sync.txt) extension for more details |
| ` static boolean` | ` https://developer.android.com/reference/android/opengl/EGLExt#eglPresentationTimeANDROID(android.opengl.EGLDisplay,%20android.opengl.EGLSurface,%20long)(https://developer.android.com/reference/android/opengl/EGLDisplay dpy, https://developer.android.com/reference/android/opengl/EGLSurface sur, long time) ` |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(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` ` https://developer.android.com/reference/java/lang/Object#wait(long)(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` ` https://developer.android.com/reference/java/lang/Object#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](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EGL_CONTEXT_FLAGS_KHR
```

<br />

<br />

Constant Value: 12540 (0x000030fc)

### EGL_CONTEXT_MAJOR_VERSION_KHR

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EGL_CONTEXT_MAJOR_VERSION_KHR
```

<br />

<br />

Constant Value: 12440 (0x00003098)

### EGL_CONTEXT_MINOR_VERSION_KHR

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EGL_CONTEXT_MINOR_VERSION_KHR
```

<br />

<br />

Constant Value: 12539 (0x000030fb)

### EGL_NO_NATIVE_FENCE_FD_ANDROID

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EGL_NO_NATIVE_FENCE_FD_ANDROID
```

<br />

<br />

Constant Value: -1 (0xffffffff)

### EGL_OPENGL_ES3_BIT_KHR

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EGL_OPENGL_ES3_BIT_KHR
```

<br />

<br />

Constant Value: 64 (0x00000040)

### EGL_RECORDABLE_ANDROID

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EGL_RECORDABLE_ANDROID
```

<br />

<br />

Constant Value: 12610 (0x00003142)

### EGL_SYNC_NATIVE_FENCE_ANDROID

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EGL_SYNC_NATIVE_FENCE_ANDROID
```

<br />

<br />

Constant Value: 12612 (0x00003144)

### EGL_SYNC_NATIVE_FENCE_FD_ANDROID

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EGL_SYNC_NATIVE_FENCE_FD_ANDROID
```

<br />

<br />

Constant Value: 12613 (0x00003145)

### EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID
```

<br />

<br />

Constant Value: 12614 (0x00003146)

## Public constructors

### EGLExt

```
public EGLExt ()
```

<br />

<br />

## Public methods

### eglDupNativeFenceFDANDROID

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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](https://www.khronos.org/registry/EGL/extensions/ANDROID/EGL_ANDROID_native_fence_sync.txt) extension for more details

<br />

| Parameters ||
|---|---|
| `display` | `EGLDisplay`: The EGLDisplay connection. This value cannot be `null`. <br /> |
| `sync` | `EGLSync`: The EGLSync to fetch the SyncFence from. This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/hardware/SyncFence` | A SyncFence representing the native fence. \* If is not a valid sync object for , an `https://developer.android.com/reference/android/hardware/SyncFence#isValid()` 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 `https://developer.android.com/reference/android/hardware/SyncFence#isValid()` 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`. <br /> |

### eglPresentationTimeANDROID

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

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

<br />

<br />

| Parameters ||
|---|---|
| `dpy` | `EGLDisplay` <br /> |
| `sur` | `EGLSurface` <br /> |
| `time` | `long` <br /> |

| Returns ||
|---|---|
| `boolean` | <br /> |