Home
last modified time | relevance | path

Searched refs:exglCtxId (Results 1 – 25 of 64) sorted by relevance

123

/expo/packages/expo-gl/common/
H A DEXGLNativeApi.cpp13 EXGLContextId exglCtxId, in EXGLContextPrepare() argument
15 auto [exglCtx, lock] = ContextGet(exglCtxId); in EXGLContextPrepare()
22 auto [exglCtx, lock] = ContextGet(exglCtxId); in EXGLContextPrepareWorklet()
29 auto [exglCtx, lock] = ContextGet(exglCtxId); in EXGLContextNeedsRedraw()
37 auto [exglCtx, lock] = ContextGet(exglCtxId); in EXGLContextDrawEnded()
44 ContextDestroy(exglCtxId); in EXGLContextDestroy()
47 void EXGLContextFlush(EXGLContextId exglCtxId) { in EXGLContextFlush() argument
48 auto [exglCtx, lock] = ContextGet(exglCtxId); in EXGLContextFlush()
55 auto [exglCtx, lock] = ContextGet(exglCtxId); in EXGLContextSetDefaultFramebuffer()
62 auto [exglCtx, lock] = ContextGet(exglCtxId); in EXGLContextCreateObject()
[all …]
H A DEXGLNativeApi.h35 void EXGLContextPrepare(void *runtime, EXGLContextId exglCtxId, std::function<void(void)> flushMeth…
39 void EXGLContextPrepareWorklet(EXGLContextId exglCtxId);
42 bool EXGLContextNeedsRedraw(EXGLContextId exglCtxId);
45 void EXGLContextDrawEnded(EXGLContextId exglCtxId);
49 void EXGLContextDestroy(EXGLContextId exglCtxId);
52 void EXGLContextFlush(EXGLContextId exglCtxId);
56 void EXGLContextSetDefaultFramebuffer(EXGLContextId exglCtxId, GLint framebuffer);
59 EXGLObjectId EXGLContextCreateObject(EXGLContextId exglCtxId);
62 void EXGLContextDestroyObject(EXGLContextId exglCtxId, EXGLObjectId exglObjId);
65 void EXGLContextMapObject(EXGLContextId exglCtxId, EXGLObjectId exglObjId, GLuint glObj);
[all …]
/expo/ios/versioned/sdk49/ExpoGL/common/
H A DABI49_0_0EXGLNativeApi.cpp13 ABI49_0_0EXGLContextId exglCtxId, in ABI49_0_0EXGLContextPrepare() argument
15 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI49_0_0EXGLContextPrepare()
22 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI49_0_0EXGLContextPrepareWorklet()
29 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI49_0_0EXGLContextNeedsRedraw()
37 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI49_0_0EXGLContextDrawEnded()
44 ContextDestroy(exglCtxId); in ABI49_0_0EXGLContextDestroy()
48 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI49_0_0EXGLContextFlush()
55 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI49_0_0EXGLContextSetDefaultFramebuffer()
62 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI49_0_0EXGLContextCreateObject()
70 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI49_0_0EXGLContextDestroyObject()
[all …]
H A DABI49_0_0EXGLNativeApi.h35 void ABI49_0_0EXGLContextPrepare(void *runtime, ABI49_0_0EXGLContextId exglCtxId, std::function<voi…
39 void ABI49_0_0EXGLContextPrepareWorklet(ABI49_0_0EXGLContextId exglCtxId);
42 bool ABI49_0_0EXGLContextNeedsRedraw(ABI49_0_0EXGLContextId exglCtxId);
45 void ABI49_0_0EXGLContextDrawEnded(ABI49_0_0EXGLContextId exglCtxId);
49 void ABI49_0_0EXGLContextDestroy(ABI49_0_0EXGLContextId exglCtxId);
52 void ABI49_0_0EXGLContextFlush(ABI49_0_0EXGLContextId exglCtxId);
56 void ABI49_0_0EXGLContextSetDefaultFramebuffer(ABI49_0_0EXGLContextId exglCtxId, GLint framebuffer);
59 ABI49_0_0EXGLObjectId ABI49_0_0EXGLContextCreateObject(ABI49_0_0EXGLContextId exglCtxId);
62 void ABI49_0_0EXGLContextDestroyObject(ABI49_0_0EXGLContextId exglCtxId, ABI49_0_0EXGLObjectId exgl…
65 void ABI49_0_0EXGLContextMapObject(ABI49_0_0EXGLContextId exglCtxId, ABI49_0_0EXGLObjectId exglObjI…
[all …]
/expo/ios/versioned/sdk48/ExpoGL/common/
H A DABI48_0_0EXGLNativeApi.cpp12 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI48_0_0EXGLContextPrepare()
19 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI48_0_0EXGLContextNeedsRedraw()
27 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI48_0_0EXGLContextDrawEnded()
34 ContextDestroy(exglCtxId); in ABI48_0_0EXGLContextDestroy()
37 void ABI48_0_0EXGLContextFlush(ABI48_0_0EXGLContextId exglCtxId) { in ABI48_0_0EXGLContextFlush() argument
38 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI48_0_0EXGLContextFlush()
45 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI48_0_0EXGLContextSetDefaultFramebuffer()
52 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI48_0_0EXGLContextCreateObject()
60 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI48_0_0EXGLContextDestroyObject()
67 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI48_0_0EXGLContextMapObject()
[all …]
H A DABI48_0_0EXGLNativeApi.h35 void ABI48_0_0EXGLContextPrepare(void *runtime, ABI48_0_0EXGLContextId exglCtxId, std::function<voi…
39 bool ABI48_0_0EXGLContextNeedsRedraw(ABI48_0_0EXGLContextId exglCtxId);
42 void ABI48_0_0EXGLContextDrawEnded(ABI48_0_0EXGLContextId exglCtxId);
46 void ABI48_0_0EXGLContextDestroy(ABI48_0_0EXGLContextId exglCtxId);
49 void ABI48_0_0EXGLContextFlush(ABI48_0_0EXGLContextId exglCtxId);
53 void ABI48_0_0EXGLContextSetDefaultFramebuffer(ABI48_0_0EXGLContextId exglCtxId, GLint framebuffer);
56 ABI48_0_0EXGLObjectId ABI48_0_0EXGLContextCreateObject(ABI48_0_0EXGLContextId exglCtxId);
59 void ABI48_0_0EXGLContextDestroyObject(ABI48_0_0EXGLContextId exglCtxId, ABI48_0_0EXGLObjectId exgl…
62 void ABI48_0_0EXGLContextMapObject(ABI48_0_0EXGLContextId exglCtxId, ABI48_0_0EXGLObjectId exglObjI…
65 GLuint ABI48_0_0EXGLContextGetObject(ABI48_0_0EXGLContextId exglCtxId, ABI48_0_0EXGLObjectId exglOb…
/expo/ios/versioned/sdk47/EXGL/common/
H A DABI47_0_0EXGLNativeApi.cpp12 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI47_0_0EXGLContextPrepare()
19 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI47_0_0EXGLContextNeedsRedraw()
27 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI47_0_0EXGLContextDrawEnded()
34 ContextDestroy(exglCtxId); in ABI47_0_0EXGLContextDestroy()
37 void ABI47_0_0EXGLContextFlush(ABI47_0_0EXGLContextId exglCtxId) { in ABI47_0_0EXGLContextFlush() argument
38 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI47_0_0EXGLContextFlush()
45 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI47_0_0EXGLContextSetDefaultFramebuffer()
52 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI47_0_0EXGLContextCreateObject()
60 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI47_0_0EXGLContextDestroyObject()
67 auto [exglCtx, lock] = ContextGet(exglCtxId); in ABI47_0_0EXGLContextMapObject()
[all …]
H A DABI47_0_0EXGLNativeApi.h35 void ABI47_0_0EXGLContextPrepare(void *runtime, ABI47_0_0EXGLContextId exglCtxId, std::function<voi…
38 bool ABI47_0_0EXGLContextNeedsRedraw(ABI47_0_0EXGLContextId exglCtxId);
41 void ABI47_0_0EXGLContextDrawEnded(ABI47_0_0EXGLContextId exglCtxId);
45 void ABI47_0_0EXGLContextDestroy(ABI47_0_0EXGLContextId exglCtxId);
48 void ABI47_0_0EXGLContextFlush(ABI47_0_0EXGLContextId exglCtxId);
52 void ABI47_0_0EXGLContextSetDefaultFramebuffer(ABI47_0_0EXGLContextId exglCtxId, GLint framebuffer);
55 ABI47_0_0EXGLObjectId ABI47_0_0EXGLContextCreateObject(ABI47_0_0EXGLContextId exglCtxId);
58 void ABI47_0_0EXGLContextDestroyObject(ABI47_0_0EXGLContextId exglCtxId, ABI47_0_0EXGLObjectId exgl…
61 void ABI47_0_0EXGLContextMapObject(ABI47_0_0EXGLContextId exglCtxId, ABI47_0_0EXGLObjectId exglObjI…
64 GLuint ABI47_0_0EXGLContextGetObject(ABI47_0_0EXGLContextId exglCtxId, ABI47_0_0EXGLObjectId exglOb…
/expo/packages/expo-gl/build/
H A DGLView.js31 return getGl(exglCtxId);
55 exglCtxId; field in GLView
76 const gl = getGl(exglCtxId);
77 this.exglCtxId = exglCtxId;
83 if (this.exglCtxId) {
104 const { exglCtxId } = this;
105 if (!exglCtxId) {
128 const { exglCtxId } = this;
140 const getGl = (exglCtxId) => { argument
150 if (!exglCtxId || typeof exglCtxId !== 'number') {
[all …]
H A DGLView.js.map1exglCtxId } = await ExponentGLObjectManager.createContextAsync();\n return getGl(exglCtxId);\n …
/expo/packages/expo-gl/android/src/main/java/expo/modules/gl/cpp/
H A DEXGL.java11 public static native void EXGLContextPrepare(long jsCtxPtr, int exglCtxId, Object glContext); in EXGLContextPrepare() argument
12 public static native void EXGLContextPrepareWorklet(int exglCtxId); in EXGLContextPrepareWorklet() argument
14 public static native void EXGLContextDestroy(int exglCtxId); in EXGLContextDestroy() argument
15 public static native void EXGLContextFlush(int exglCtxId); in EXGLContextFlush() argument
17 public static native int EXGLContextCreateObject(int exglCtxId); in EXGLContextCreateObject() argument
18 public static native void EXGLContextDestroyObject(int exglCtxId, int exglObjId); in EXGLContextDestroyObject() argument
19 public static native void EXGLContextMapObject(int exglCtxId, int exglObjId, int glObj); in EXGLContextMapObject() argument
20 public static native int EXGLContextGetObject(int exglCtxId, int exglObjId); in EXGLContextGetObject() argument
21 public static native boolean EXGLContextNeedsRedraw(int exglCtxId); in EXGLContextNeedsRedraw() argument
22 public static native void EXGLContextDrawEnded(int exglCtxId); in EXGLContextDrawEnded() argument
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/gl/cpp/
H A DEXGL.java11 public static native void EXGLContextPrepare(long jsCtxPtr, int exglCtxId, Object glContext); in EXGLContextPrepare() argument
12 public static native void EXGLContextPrepareWorklet(int exglCtxId); in EXGLContextPrepareWorklet() argument
14 public static native void EXGLContextDestroy(int exglCtxId); in EXGLContextDestroy() argument
15 public static native void EXGLContextFlush(int exglCtxId); in EXGLContextFlush() argument
17 public static native int EXGLContextCreateObject(int exglCtxId); in EXGLContextCreateObject() argument
18 public static native void EXGLContextDestroyObject(int exglCtxId, int exglObjId); in EXGLContextDestroyObject() argument
19 public static native void EXGLContextMapObject(int exglCtxId, int exglObjId, int glObj); in EXGLContextMapObject() argument
20 public static native int EXGLContextGetObject(int exglCtxId, int exglObjId); in EXGLContextGetObject() argument
21 public static native boolean EXGLContextNeedsRedraw(int exglCtxId); in EXGLContextNeedsRedraw() argument
22 public static native void EXGLContextDrawEnded(int exglCtxId); in EXGLContextDrawEnded() argument
/expo/packages/expo-gl/android/src/main/cpp/
H A DEXGLJniApi.cpp39 (JNIEnv *env, jclass clazz, jint exglCtxId) { in Java_expo_modules_gl_cpp_EXGL_EXGLContextPrepareWorklet() argument
41 EXGLContextPrepareWorklet(exglCtxId); in Java_expo_modules_gl_cpp_EXGL_EXGLContextPrepareWorklet()
46 (JNIEnv *env, jclass clazz, jint exglCtxId) { in Java_expo_modules_gl_cpp_EXGL_EXGLContextDestroy() argument
47 EXGLContextDestroy(exglCtxId); in Java_expo_modules_gl_cpp_EXGL_EXGLContextDestroy()
52 (JNIEnv *env, jclass clazz, jint exglCtxId) { in Java_expo_modules_gl_cpp_EXGL_EXGLContextFlush() argument
53 EXGLContextFlush(exglCtxId); in Java_expo_modules_gl_cpp_EXGL_EXGLContextFlush()
58 (JNIEnv *env, jclass clazz, jint exglCtxId) { in Java_expo_modules_gl_cpp_EXGL_EXGLContextCreateObject() argument
59 return EXGLContextCreateObject(exglCtxId); in Java_expo_modules_gl_cpp_EXGL_EXGLContextCreateObject()
82 (JNIEnv *env, jclass clazz, jint exglCtxId) { in Java_expo_modules_gl_cpp_EXGL_EXGLContextNeedsRedraw() argument
83 return EXGLContextNeedsRedraw(exglCtxId); in Java_expo_modules_gl_cpp_EXGL_EXGLContextNeedsRedraw()
[all …]
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/gl/cpp/
H A DEXGL.java11 public static native void EXGLContextPrepare(long jsCtxPtr, int exglCtxId, Object glContext); in EXGLContextPrepare() argument
13 public static native void EXGLContextDestroy(int exglCtxId); in EXGLContextDestroy() argument
14 public static native void EXGLContextFlush(int exglCtxId); in EXGLContextFlush() argument
16 public static native int EXGLContextCreateObject(int exglCtxId); in EXGLContextCreateObject() argument
17 public static native void EXGLContextDestroyObject(int exglCtxId, int exglObjId); in EXGLContextDestroyObject() argument
18 public static native void EXGLContextMapObject(int exglCtxId, int exglObjId, int glObj); in EXGLContextMapObject() argument
19 public static native int EXGLContextGetObject(int exglCtxId, int exglObjId); in EXGLContextGetObject() argument
21 public static native boolean EXGLContextNeedsRedraw(int exglCtxId); in EXGLContextNeedsRedraw() argument
22 public static native void EXGLContextDrawEnded(int exglCtxId); in EXGLContextDrawEnded() argument
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/gl/cpp/
H A DEXGL.java11 public static native void EXGLContextPrepare(long jsCtxPtr, int exglCtxId, Object glContext); in EXGLContextPrepare() argument
13 public static native void EXGLContextDestroy(int exglCtxId); in EXGLContextDestroy() argument
14 public static native void EXGLContextFlush(int exglCtxId); in EXGLContextFlush() argument
16 public static native int EXGLContextCreateObject(int exglCtxId); in EXGLContextCreateObject() argument
17 public static native void EXGLContextDestroyObject(int exglCtxId, int exglObjId); in EXGLContextDestroyObject() argument
18 public static native void EXGLContextMapObject(int exglCtxId, int exglObjId, int glObj); in EXGLContextMapObject() argument
19 public static native int EXGLContextGetObject(int exglCtxId, int exglObjId); in EXGLContextGetObject() argument
21 public static native boolean EXGLContextNeedsRedraw(int exglCtxId); in EXGLContextNeedsRedraw() argument
22 public static native void EXGLContextDrawEnded(int exglCtxId); in EXGLContextDrawEnded() argument
/expo/packages/expo-gl/android/src/main/java/expo/modules/gl/
H A DGLObject.java6 protected int exglCtxId; field in GLObject
9 GLObject(int exglCtxId) { in GLObject() argument
11 this.exglCtxId = exglCtxId; in GLObject()
12 this.exglObjId = EXGLContextCreateObject(exglCtxId); in GLObject()
20 EXGLContextDestroyObject(exglCtxId, exglObjId); in destroy()
H A DGLObjectManagerModule.kt36 …AsyncFunction("createCameraTextureAsync") { exglCtxId: Int, cameraViewTag: Int, promise: Promise -> in <lambda>() method
40 val glContext = getContextWithId(exglCtxId) in <lambda>()
53 …AsyncFunction("takeSnapshotAsync") { exglCtxId: Int, options: Map<String, Any?>, promise: Promise … in <lambda>() method
57 val glContext = getContextWithId(exglCtxId) in <lambda>()
72 AsyncFunction("destroyContextAsync") { exglCtxId: Int -> in <lambda>() method
73 val glContext = getContextWithId(exglCtxId) in <lambda>()
81 private fun getContextWithId(exglCtxId: Int): GLContext? { in <lambda>()
82 return mGLContextMap[exglCtxId] in <lambda>()
89 fun deleteContextWithId(exglCtxId: Int) { in <lambda>()
90 mGLContextMap.delete(exglCtxId) in <lambda>()
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/gl/
H A DGLObject.java6 protected int exglCtxId; field in GLObject
9 GLObject(int exglCtxId) { in GLObject() argument
11 this.exglCtxId = exglCtxId; in GLObject()
12 this.exglObjId = EXGLContextCreateObject(exglCtxId); in GLObject()
20 EXGLContextDestroyObject(exglCtxId, exglObjId); in destroy()
H A DGLObjectManagerModule.java43 public GLContext getContextWithId(int exglCtxId) { in getContextWithId() argument
44 return mGLContextMap.get(exglCtxId); in getContextWithId()
51 public void deleteContextWithId(final int exglCtxId) { in deleteContextWithId() argument
52 mGLContextMap.delete(exglCtxId); in deleteContextWithId()
68 …public void createCameraTextureAsync(final int exglCtxId, final int cameraViewTag, final Promise p… in createCameraTextureAsync() argument
79 final GLContext glContext = getContextWithId(exglCtxId); in createCameraTextureAsync()
109 …public void takeSnapshotAsync(final int exglCtxId, final Map<String, Object> options, final Promis… in takeSnapshotAsync() argument
110 GLContext glContext = getContextWithId(exglCtxId); in takeSnapshotAsync()
134 public void destroyContextAsync(final int exglCtxId, final Promise promise) { in destroyContextAsync() argument
135 GLContext glContext = getContextWithId(exglCtxId); in destroyContextAsync()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/gl/
H A DGLObject.java6 protected int exglCtxId; field in GLObject
9 GLObject(int exglCtxId) { in GLObject() argument
11 this.exglCtxId = exglCtxId; in GLObject()
12 this.exglObjId = EXGLContextCreateObject(exglCtxId); in GLObject()
20 EXGLContextDestroyObject(exglCtxId, exglObjId); in destroy()
H A DGLObjectManagerModule.java43 public GLContext getContextWithId(int exglCtxId) { in getContextWithId() argument
44 return mGLContextMap.get(exglCtxId); in getContextWithId()
51 public void deleteContextWithId(final int exglCtxId) { in deleteContextWithId() argument
52 mGLContextMap.delete(exglCtxId); in deleteContextWithId()
68 …public void createCameraTextureAsync(final int exglCtxId, final int cameraViewTag, final Promise p… in createCameraTextureAsync() argument
79 final GLContext glContext = getContextWithId(exglCtxId); in createCameraTextureAsync()
109 …public void takeSnapshotAsync(final int exglCtxId, final Map<String, Object> options, final Promis… in takeSnapshotAsync() argument
110 GLContext glContext = getContextWithId(exglCtxId); in takeSnapshotAsync()
134 public void destroyContextAsync(final int exglCtxId, final Promise promise) { in destroyContextAsync() argument
135 GLContext glContext = getContextWithId(exglCtxId); in destroyContextAsync()
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/gl/
H A DGLObject.java6 protected int exglCtxId; field in GLObject
9 GLObject(int exglCtxId) { in GLObject() argument
11 this.exglCtxId = exglCtxId; in GLObject()
12 this.exglObjId = EXGLContextCreateObject(exglCtxId); in GLObject()
20 EXGLContextDestroyObject(exglCtxId, exglObjId); in destroy()
H A DGLObjectManagerModule.java43 public GLContext getContextWithId(int exglCtxId) { in getContextWithId() argument
44 return mGLContextMap.get(exglCtxId); in getContextWithId()
51 public void deleteContextWithId(final int exglCtxId) { in deleteContextWithId() argument
52 mGLContextMap.delete(exglCtxId); in deleteContextWithId()
68 …public void createCameraTextureAsync(final int exglCtxId, final int cameraViewTag, final Promise p… in createCameraTextureAsync() argument
79 final GLContext glContext = getContextWithId(exglCtxId); in createCameraTextureAsync()
109 …public void takeSnapshotAsync(final int exglCtxId, final Map<String, Object> options, final Promis… in takeSnapshotAsync() argument
110 GLContext glContext = getContextWithId(exglCtxId); in takeSnapshotAsync()
134 public void destroyContextAsync(final int exglCtxId, final Promise promise) { in destroyContextAsync() argument
135 GLContext glContext = getContextWithId(exglCtxId); in destroyContextAsync()
/expo/tools/src/versioning/android/versionCxx/patches/
H A Dexpo-gl.patch42 (JNIEnv *env, jclass clazz, jint exglCtxId) {
44 EXGLContextPrepareWorklet(exglCtxId);
50 (JNIEnv *env, jclass clazz, jint exglCtxId) {
51 EXGLContextDestroy(exglCtxId);
57 (JNIEnv *env, jclass clazz, jint exglCtxId) {
58 EXGLContextFlush(exglCtxId);
64 (JNIEnv *env, jclass clazz, jint exglCtxId) {
65 return EXGLContextCreateObject(exglCtxId);
92 (JNIEnv *env, jclass clazz, jint exglCtxId) {
93 return EXGLContextNeedsRedraw(exglCtxId);
[all …]
/expo/packages/expo-gl/src/
H A DGLView.tsx58 return getGl(exglCtxId);
90 exglCtxId?: number;
128 const gl = getGl(exglCtxId);
130 this.exglCtxId = exglCtxId;
138 if (this.exglCtxId) {
165 const { exglCtxId } = this;
167 if (!exglCtxId) {
173 exglCtxId,
196 const { exglCtxId } = this;
228 if (!exglCtxId || typeof exglCtxId !== 'number') {
[all …]

123