mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-07 01:53:24 +09:00
MOBILEGL_BUILD_TRACE_REPLAY now also produces mobilegl_trace_replay on ANDROID: the same CLI as desktop, linked against the APK runner's glws/glproc glue. On the device it dials a render server with no Activity at all - MOBILEGL_IPC_CONTROL=unix:@name with shm data to the offscreen supervisor (a cross-uid abstract connect needs root or an SELinux waiver; loopback TCP works from plain adb shell), or tcp:// with MOBILEGL_IPC_SURFACE=server to the on-screen display server. glws_android grows the desktop glws_egl's server-owned null-window createWindowSurface, gated on MOBILEGL_TRACE_SURFACE=window so the APK's pbuffer mode keeps its old answer, and the config carries EGL_WINDOW_BIT for it. The control screen refuses unix endpoints in on-screen mode: the in-process display server serves tcp:// only. Verified on-device with an OpenRA retrace, ssim=1.0 both ways: offscreen service on @mgl-cli with the CLI as root, and the display Activity on tcp://127.0.0.1:40613 with the replay's frames on the phone's screen.