Commit Graph

10 Commits

Author SHA1 Message Date
Mis012
98d17ac25e fix some gcc-reported warnings 2024-04-20 00:05:51 +02:00
Mis012
f52a221c73 android_os_MessageQueue: move looper prototypes to header, fix incorrect prototype 2024-04-15 23:12:58 +02:00
ptrcnull
f49922cf1b add stub for ALooper::removeFd 2024-03-09 04:50:56 +01:00
Mis012
08998b0076 make Looper, Handler, and MessageQueue work properly
this for example makes Unity apps not steal the main thread,
hanging Gtk.
2023-07-25 14:27:21 +02:00
Julian Winkler
824b821f5a looper.c: make objretcall less hacky
the old method failed when building with -Os on arm64
2023-06-22 09:26:57 +00:00
Mis012
184a1916ad src/libandroid/looper.c: make the ffi saner 2023-01-12 13:14:02 +01:00
Mis012
43aa1cf455 src/libandroid: implement more stuff 2022-12-31 17:17:10 +01:00
Mis012
12fffb0724 src/libandroid/looper.c: fix for aarch64 (TODO: just implement these as extern C straight in libutils?) 2022-12-01 14:44:16 +01:00
Mis012
debe8c9843 src/libandroid: Add actual implementations for the stubbed ALooper functions
this was actually surprisingly easy, since it turns out these
are just C ABI wrappers around the C++ class android::Looper
from AOSP libutils.so, which is a dependency for art that we
therefore compile and distribute alongside it
2022-11-04 19:20:45 +01:00
Mis012
b801f0fb3c implement some stuff to make exaple SDL app run
NOTE: the main addition in this commit is WIP support for apps which
render on an EGL surface obtained using ANativeWindow_fromSurface

currently, this EGL surface is obtained by creating a 700x700 pixel
window with GLFW (the 700x700 size is hardcoded in several places)
and only Wayland is supported

ideally, we'd want to use a wayland subsurface to position the EGL
surface above the Surface widget it's associated with (and do
whatever for X11)
2022-10-26 18:39:04 +02:00