Commit graph

2,205 commits

Author SHA1 Message Date
admin
4cfac71525 automated click animation 2026-02-22 13:34:00 +01:00
admin
8ced05d753 refactor remote and screenshot proto 2026-02-22 10:57:51 +01:00
admin
86813bc2a7 runview ticks 2026-02-21 16:53:42 +01:00
admin
8240c26cc9 theme cleanup 2026-02-21 15:46:30 +01:00
admin
b6c847faf2 theme cleanup 2026-02-21 15:40:12 +01:00
admin
c4a7c3e8d9 fix up theme hook 2026-02-21 15:21:27 +01:00
admin
f1418cebae terminal viewport 2026-02-21 14:55:22 +01:00
Admin
aebab79f7b gpu profiling 2026-02-21 13:29:30 +01:00
Admin
780fb22e0a make splats faster 2026-02-21 12:40:37 +01:00
Admin
f6ed3835bd make splats faster 2026-02-21 12:37:26 +01:00
Admin
7b4d6e34c0 downshift hiccups fixed 2026-02-21 11:51:33 +01:00
Admin
b4123ebfa0 profiler 2026-02-21 11:30:59 +01:00
Admin
5c5bd9cfc4 profiler 2026-02-21 10:37:25 +01:00
offline-ant
29c1fd1de2 Fix some build issues + upgrade android to r28 ndk. (#862)
* fix: add **/* glob to Linux NDK unzip to match subdirectories

`*` alone doesn't match `/` on Linux unzip builds with WILD_STOP_AT_DIR,
causing only top-level files to be extracted. Adding `**/*` ensures bin/,
lib64/, sysroot/ subdirectories are included.

* Auto-bundle NDK shared library deps (e.g. libc++_shared.so) into APK

When libmakepad.so has NEEDED entries for shared libraries provided by
the NDK sysroot (like libc++_shared.so from C++ dependencies), those
libraries were not being included in the APK, causing runtime dlopen
failures on device.

Add bundle_ndk_shared_deps() which uses the NDK's llvm-readelf to scan
libmakepad.so for NEEDED entries, then copies any matching .so files
from the NDK sysroot base lib dir into the APK. System libraries
(present in the API-level subdirectory) are excluded since they are
provided by the Android OS at runtime.

The detection is general-purpose and not hardcoded to any specific
library name.

* fix: make SYS_GETTID arch-conditional (186 on x86_64, 178 on aarch64)

The constant was hardcoded to 178 (correct for aarch64 but maps to
query_module on x86_64), causing Android's seccomp filter to kill the
process immediately on x86_64 emulators.

* Upgrade Android NDK from r25 to r28, fix x86_64 seccomp crash

cargo_makepad:
- sdk.rs: NDK version 25.2.9519653 → 28.2.13676358, download URLs r25c → r28b
- sdk.rs: Update NDK_IN extract paths for all platforms (Windows, macOS, Linux)
- sdk.rs: macOS NDK extraction is now host-aware (darwin-aarch64 for Apple Silicon)
- compile.rs: MacosAarch64 uses native darwin-aarch64 prebuilt (no more Rosetta)
- compile.rs: ndk_prebuilt_dir() split for MacosX64 vs MacosAarch64

platform:
- libc_sys.rs: Make SYS_GETTID arch-conditional (186 on x86_64, 178 on aarch64)
  Was hardcoded to 178 which maps to query_module on x86_64, causing
  Android seccomp to kill the process on x86_64 emulators
- android.rs: Add pub display field on CxOs, pub make_current() on CxAndroidDisplay
  for Servo embedding support

* Fix GLSL struct constructor crash on Android GLES drivers

The r28 script-based shader backend (shader_glsl.rs) generates GLSL
struct constructor syntax in the vertex/fragment main() unpack code,
e.g.: vb_geom = QuadVertex(vec2(packed_geometry_0.x, ...));

Some GLES drivers (notably Android emulator ANGLE/SwiftShader) reject
this with 'Structure constructor arguments do not match structure
fields', even though it's valid per the GLES 3.0 spec.

This is a regression from r28. The old r25 shader compiler
(generate_glsl.rs) used VarUnpacker::unpack_var which generated direct
swizzle assignments (vb_geom.xy = packed_geometry_0.xy), never struct
constructors in the unpack path. The r25 branch is not affected.

Fix: generate per-sub-field assignments for struct-typed variables in
the main() geometry/instance/varying unpack code, matching the r25
behavior. Struct constructors in user shader function bodies are
unaffected.

* fix(android): Proper fullscreen support on API 30+ and FullscreenWindow/NormalizeWindow ops

Android platform changes:
- Add CxOsOp::FullscreenWindow handler: sets os.fullscreen flag and calls JNI setFullScreen
- Add CxOsOp::NormalizeWindow handler: clears os.fullscreen and exits fullscreen

MakepadActivity.java:
- onCreate: On API 30+, switch from legacy Theme.NoTitleBar.Fullscreen to
  Theme_DeviceDefault_NoActionBar to avoid FLAG_FULLSCREEN conflict
- onCreate: Call setDecorFitsSystemWindows(false) and set
  LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS before setContentView so SurfaceView
  is laid out at y=0 from the start
- Refactor setFullScreen into applyFullScreen with proper WindowInsetsController
  API on API 30+ (hide/show statusBars + navigationBars)
- Legacy path (pre-API 30) uses full immersive sticky flags
- ResizingLayout.onApplyWindowInsets: Return WindowInsets.CONSUMED to prevent
  system bar insets from offsetting child SurfaceView

* Fix Android touch radius DPI scaling and revert aggressive fullscreen inset handling

- Divide touch.radius by dpi_factor alongside touch.abs for correct touch sizing
- Return insets instead of consuming them in ResizingLayout so child views get proper insets
- Remove premature setDecorFitsSystemWindows/cutout mode override; let apps opt in via FullscreenWindow

* Make DrawImage image_scale/image_pan fields pub

Needed by external crates (e.g. servo makepad_shell) that create custom
widgets using DrawImage and need to flip the Y axis for GL render textures.

---------

Co-authored-by: ant <ant@offline.click>
2026-02-21 10:30:56 +01:00
Admin
88baa3eff8 sortable drawcalls 2026-02-21 10:05:07 +01:00
Admin
fd7aed79ce fix studio reload 2026-02-21 08:58:31 +01:00
Admin
2cb2194e30 fix studio reload 2026-02-21 08:54:58 +01:00
Admin
e5cc73cfe6 splats without sort yet 2026-02-21 08:43:52 +01:00
Admin
9468ba8f53 drawcall fixing 2026-02-21 06:50:39 +01:00
Admin
dbbdadbe34 fix 2026-02-20 23:58:48 +01:00
offline-ant
ca14cb4660 Add Servo embedding support: render texture API, EGL access, Image Y-flip (#861)
Three minimal changes to support embedding Servo as a WebView:

1. windowing_backend.rs: Make opengl_cx field pub (was pub(super))
   Servo needs EGL display/context/platform handles to create a shared
   GL context. egl_platform and egl_platform_display have no EGL query
   to retrieve them — they must come from whoever created the display.
   Matches Makepad convention (Cx fields are pub, no accessors).

2. opengl.rs: Add Cx::create_gl_render_texture(width, height)
   Eagerly allocates a RenderBGRAu8 texture and returns (Texture, gl_id).
   Needed because Makepad allocates GL textures lazily during render,
   but Servo needs the GL texture ID at init to attach to its FBO.
   No existing API for eager allocation (update_render_target and
   cx.os.gl() are both pub(crate)).

3. image.rs: Add is_render() Y-flip in Image widget
   FBO render targets are Y-up in OpenGL; Makepad is Y-down.
   CachedView handles this via sample2d_rt shader, but Image widget
   was untested with render textures. set_texture() accepts them but
   displays upside-down. Fixes a genuine gap — no existing Makepad
   code puts RenderBGRAu8 into an Image widget.

Co-authored-by: ant <ant@offline.click>
2026-02-20 16:36:53 +01:00
Admin
d0fe4151ac portal list unstuck 2026-02-20 16:05:31 +01:00
Admin
9d86689d07 drawcall ordering and git ui 2026-02-20 15:47:56 +01:00
Julián Montes de Oca
40cad5dd37 Restore IME support (#860)
* Restore IME support

* Remove unused voice handling methods from Window
2026-02-20 14:06:02 +01:00
Admin
420122507b fix overstripping 2026-02-20 10:30:25 +01:00
Admin
4f98523948 voice 2026-02-20 10:16:18 +01:00
Admin
af9224739e cleanup 2026-02-20 10:04:49 +01:00
Admin
6e4210d3b5 voice input final 2026-02-20 09:59:22 +01:00
Admin
e2b9780cd3 0.6s 2026-02-20 08:57:53 +01:00
Admin
e4b7cd25bb 0.9s 2026-02-20 08:43:08 +01:00
Admin
306a4b9cc5 1.5s 2026-02-20 07:52:58 +01:00
Admin
eb8a724b75 1.6s 2026-02-20 01:01:21 +01:00
Admin
521e3070f1 1.6s 2026-02-19 23:44:33 +01:00
Admin
da10d4ebac 1.6s 2026-02-19 23:37:16 +01:00
Admin
b59a074b13 metal otw 2026-02-19 22:58:15 +01:00
Admin
5bd44ce775 metal otw 2026-02-19 22:11:16 +01:00
Admin
a22457b228 metal otw 2026-02-19 21:21:30 +01:00
Admin
b826b226c3 make voice optional 2026-02-19 21:16:57 +01:00
Admin
78552752c2 metal otw 2026-02-19 21:00:49 +01:00
Admin
5b23f43f60 metal otw 2026-02-19 20:49:08 +01:00
Admin
0a18aad5f2 build fixups 2026-02-19 18:15:34 +01:00
Admin
a0a2405df2 metal otw 2026-02-19 18:15:34 +01:00
Admin
523dcc3f79 metal otw 2026-02-19 18:15:34 +01:00
Julián Montes de Oca
41ca84222b Restore video widget (#857) 2026-02-19 16:43:41 +01:00
Admin
46af8eb28b font change 2026-02-19 15:36:56 +01:00
Admin
d2b9b726d5 voice PTT 2026-02-19 15:11:46 +01:00
Admin
8c03c2a4a1 cleanup 2026-02-19 14:28:24 +01:00
Admin
a120c8567e voice input 2026-02-19 14:13:07 +01:00
Admin
5d2f06e8bc fix 2026-02-19 14:10:39 +01:00
Admin
7b57e07223 nicer dots 2026-02-19 09:21:14 +01:00