Mis012
df38723d2d
api-impl-jni: native_window.c: fix xr_func prototype for c23/gcc15, and add a warning on the limitations of __builtin_va_arg_pack
2025-06-30 21:32:20 +02:00
Mis012
ab5b600bf1
run whitespace_format.py --add-new-line-marker-at-end-of-file --remove-trailing-whitespace --remove-trailing-empty-lines --new-line-marker=linux --normalize-non-standard-whitespace=remove on src/
2025-02-05 16:27:17 +01:00
Julian Winkler
260821d68c
Bitmap: implement pixel buffer access
...
For GPU textures, the GdkTextureDownloader will take care of format
conversions, so the application never sees the actual format.
If the application calls AndroidBitmap_unlockPixels(), the texture is
converted into a GdkMemoryTexture and can be accessed zero copy.
2024-12-22 23:40:11 +01:00
Mis012
9f244edc05
native_window: fix wayland pbuffer emulation
2024-11-30 18:54:53 +01:00
Julian Winkler
fd541bec75
wayland_server: implement wl_buffer destroy listener
...
Fixes a segfault, where a wl_buffer was destroyed while in use. Also it
allows us to replace the custom caching mechanism and instead find
existing buffers by their destroy listener.
2024-11-21 19:05:39 +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
Daniel Panero
f48fce5932
api-impl: misc stubs and fixes for Spotify II
2024-11-17 17:40:06 +00: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
Mis012
004ba4ff00
remove some old debugging prints, gate others behind verbose log
2024-06-22 14:35:56 +02:00
Mis012
725df91af9
libandroid: add bitmap.c
2024-06-13 20:58:52 +02:00
Mis012
4374ac01ad
AssetManager: use libandroidfw to read assets straight from the apk file
...
they can still be put on the filesystem and will be read from there
preferentially, though overriding assets in this way can confuse
some creatively written apps and cause them to crash.
2024-05-26 00:10:16 +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
f52a221c73
android_os_MessageQueue: move looper prototypes to header, fix incorrect prototype
2024-04-15 23:12:58 +02:00
Markuss Broks
d4e9ddbd15
libandroid: Add a stub for AKeyEvent_getKeyCode
2024-04-01 19:41:06 +00:00
ptrcnull
f49922cf1b
add stub for ALooper::removeFd
2024-03-09 04:50:56 +01:00
Mis012
6d587a19e5
misc stuff to make glmark2 run
2024-03-05 17:07:21 +01:00
Mis012
25a0a44638
libandroid: xr: remove XR_KHR_android_create_instance from extension list
2023-12-07 14:55:30 +01:00