summaryrefslogtreecommitdiff
path: root/subprojects
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-01-20 20:38:33 -0500
committerAndrew Opalach <andrew@akon.city> 2025-01-20 20:38:33 -0500
commitf3590721df77b7557a80c437acca33b1a4514a9a (patch)
tree3be6db7ca795b1ea8469ac1da15c9ab8b90936be /subprojects
parent474ccfd0534e03cfcde94fe0f94e3028ed65366a (diff)
downloadcamu-f3590721df77b7557a80c437acca33b1a4514a9a.tar.gz
camu-f3590721df77b7557a80c437acca33b1a4514a9a.tar.bz2
camu-f3590721df77b7557a80c437acca33b1a4514a9a.zip
Hardware decoding on Android
- This is bad, hardware decoding selection needs to be completely rethought. Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'subprojects')
-rw-r--r--subprojects/packagefiles/glfm/get_egl_internal.diff39
1 files changed, 39 insertions, 0 deletions
diff --git a/subprojects/packagefiles/glfm/get_egl_internal.diff b/subprojects/packagefiles/glfm/get_egl_internal.diff
new file mode 100644
index 0000000..3c9098c
--- /dev/null
+++ b/subprojects/packagefiles/glfm/get_egl_internal.diff
@@ -0,0 +1,39 @@
+diff --git a/include/glfm.h b/include/glfm.h
+index ceace39..d18711c 100644
+--- a/include/glfm.h
++++ b/include/glfm.h
+@@ -892,6 +892,9 @@ ANativeActivity *glfmAndroidGetActivity(void) GLFM_DEPRECATED("Use glfmGetAndroi
+ /// ``GLFMAppFocusFunc``.
+ void *glfmGetAndroidActivity(const GLFMDisplay *display);
+
++void *glfmGetEglDisplay(const GLFMDisplay *display);
++void *glfmGetEglContext(const GLFMDisplay *display);
++
+ #endif // GLFM_EXPOSE_NATIVE_ANDROID
+
+ #ifdef __cplusplus
+diff --git a/src/glfm_android.c b/src/glfm_android.c
+index 67d1927..7942ddf 100644
+--- a/src/glfm_android.c
++++ b/src/glfm_android.c
+@@ -2800,4 +2800,20 @@ void *glfmGetAndroidActivity(const GLFMDisplay *display) {
+ return platformData->activity;
+ }
+
++void *glfmGetEglDisplay(const GLFMDisplay *display) {
++ if (!display || !display->platformData) {
++ return NULL;
++ }
++ GLFMPlatformData *platformData = display->platformData;
++ return platformData->eglDisplay;
++}
++
++void *glfmGetEglContext(const GLFMDisplay *display) {
++ if (!display || !display->platformData) {
++ return NULL;
++ }
++ GLFMPlatformData *platformData = display->platformData;
++ return platformData->eglContext;
++}
++
+ #endif // __ANDROID__