Mis012
9f244edc05
native_window: fix wayland pbuffer emulation
2024-11-30 18:54:53 +01:00
Julian Winkler
09176cade8
native_window: fix using the embedded Wayland server when the system is X11
2024-11-21 19:05:39 +01:00
Julian Winkler
4b36bca4c6
refactor SurfaceViewWidget for frame_callback in the Wayland server
...
SurfaceViewWidget is now always a child of a GtkGraphicsOffload and
handles the GdkTexture on its own. This way the extra GtkPicture is no
longer needed and also the frame_callback of the Wayland server can be
implemented.
2024-11-17 17:11:14 +01:00
Julian Winkler
58f29b7ba2
implement minimal Wayland server to import EGL surfaces into GtkGraphicsOffload
...
This allows us to use the translucent cutout feature of
GtkGraphicsOffload, which can not be implemented with our custom
subsurface implementation.
2024-11-17 16:50:45 +01:00
Markuss Broks
b09aff6316
native_window: fix for Nvidia proprietary drivers
2024-10-14 19:59:49 +03:00
Mis012
6560512b47
improve --help output and code style in main.c, use ARRAY_SIZE consistently
2024-09-15 00:42:55 +02:00
Mis012
4cb9cea3ba
native_window: remove UGLY_HACK_FOR_VR, it's not needed because we now emulate pbuffers on wayland; also, using Gtk's X11 backend is always an option
2024-09-13 20:36:44 +02:00
Mis012
3c69d50af1
libandroid: native_window: fake pbuffer support on !x11
2024-06-26 16:07:31 +02:00
Julian Winkler
64411c75aa
fix build on Debian 12 / GTK 4.8
2024-05-06 07:28:56 +02:00
Mis012
31929d2253
ignore deprecation warnings for per-widget css, switch gtk_widget_translate_coordinates to gtk_widget_compute_point
2024-04-20 16:34:01 +02:00
Mis012
98d17ac25e
fix some gcc-reported warnings
2024-04-20 00:05:51 +02:00
Mis012
21627aecad
ANativeWindow: make the while loop hack work on main thread
2024-04-17 19:27:16 +02:00
Mis012
25a0a44638
libandroid: xr: remove XR_KHR_android_create_instance from extension list
2023-12-07 14:55:30 +01:00
Nikita Travkin
9881f2fa31
libandroid: xr: don't assume android GLES
2023-11-29 13:47:36 +01:00
Nikita Travkin
0fb6754598
libandroid: xr: override procaddr with bionic symbols
2023-11-25 20:15:23 +01:00
Mis012
9ef2151c5e
GLSurfaceView: remove old implementation, import the one from AOSP
...
Now that we have a reasonably well working SurfaceView implementation,
it is actually cleaner to just implement GLSurfaceView the way AOSP
does. In fact, their code doesn't have any weird dependencies, and
can mostly be used as-is.
The AOSP code is pure Java, which means we had to implement some
EGL wrappers.
This change fixes issues with Wayland (it only ever worked because
the pbuffers were allocated using an XWayland EGLDisplay), and
with resizing (which we simply didn't support), all while getting
rid of quite some (arguably not very readable) LoC.
2023-10-20 20:54:37 +02:00
Julian Winkler
b340032e9f
impement android.media.MediaCodec using libavcodec
...
The current implementation requires a VA-API driver and a Wayland
compositor with YUV-buffer support. GNOME supports YUV-buffers
since the recent version 45 release
2023-10-14 18:29:33 +02:00
Mis012
c326cad04e
misc cleanup, address some warnings
2023-09-25 19:56:39 +02:00
Markuss Broks
beca82142c
libandroid/native_window.c: Implement X11 support
...
Signed-off-by: Markuss Broks <markuss.broks@gmail.com >
2023-09-19 15:00:46 +02:00
Nikita Travkin
d3e5c6ee70
api-impl,libandroid: Add some stubs, mostly
2023-09-19 14:44:50 +02:00
Mis012
e1cf5c7047
libandroid/native_window.c: make Vulkan work, add refcount
2023-09-14 21:48:15 +02:00
Mis012
0a9fe3caa9
src/libandroid/native_window.c: [belongs in openxr_bio]: use dlopen/dlsym to avoid hard dependency on openxr loader
2023-01-09 13:55:25 +01:00
Mis012
2a7345e44e
src/libandroid/native_window.c: the part that should go in libEGL_bio: intercept eglGetProcAddress so we can stub extensions
2023-01-05 19:00:27 +01:00
Mis012
eb9b2cb53e
src/libandroid/native_window.c: implement wrappers around some OpenXR stuff so we can run OpenXR apps
2022-12-31 17:17:10 +01:00
Mis012
3616a41353
src/libandroid/native_window.c: check for NULL in bionic_eglCreateWindowSurface
2022-12-01 14:44:16 +01:00