An idle app takes no loop turn: a session's pump blocks until there is news for it, wakes and GPU results reach only their own session, and a hosted app builds no frame while its window has no free shared image. Each window paces at its own display; a texture pass paints only when its window can show the result and is exactly its render target at every scale. The direct compositor renders on the discrete GPU when there is one; Mirror and Extended switch without an output rebuild. Vulkan: a full GPU never makes an app fall back, fail or spin; upload arenas are pooled; pipeline variants a batch needs compile before it; a grab of a hosted window no longer loses the device; the WM's own device is replaceable and apps hear Event::GpuReset. Every process lifts its open-file limit. Cameras: retry after a failed open, rotation kept, a synthetic test camera, Cx::video_inputs. Android: standalone app APKs run on the HAL again, file video decoding, system back gestures, audio underruns grow the buffer. Frame tracing names who keeps an app awake; one main-lag meter for macOS and Linux. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
18 lines
996 B
Rust
18 lines
996 B
Rust
//! The `#[relax_api]` table this crate lays down under `host-shims` (what the `makepad` loader reads).
|
|
#![cfg(feature = "host-shims")]
|
|
|
|
use makepad_relax_api::{entries, HANDLE, OP, PLAIN};
|
|
|
|
#[test]
|
|
fn the_four_ops_and_the_plain_types_are_marked() {
|
|
// links the crate (and with it its link-section entries)
|
|
let _ = makepad_hal::clock_ns();
|
|
let mine: Vec<_> = entries().iter().filter(|e| e.module.split("::").next() == Some("makepad_hal")).collect();
|
|
let count = |k| mine.iter().filter(|e| e.kind == k).count();
|
|
println!("makepad_hal entries: ops {} plain {} handle {}", count(OP), count(PLAIN), count(HANDLE));
|
|
let ops: Vec<String> = mine.iter().filter(|e| e.kind == OP).map(|e| (e.key)().to_string()).collect();
|
|
for name in ["hal_open", "hal_submit", "hal_pump", "hal_wake", "hal_wake_session"] {
|
|
assert!(ops.iter().any(|o| o.ends_with(name)), "{name} missing from {ops:?}");
|
|
}
|
|
assert!(mine.iter().filter(|e| e.kind == PLAIN).all(|e| e.size > 0));
|
|
}
|