M2: live Android emulator embedding (gRPC → wgpu VideoFrame) - #17
Merged
Conversation
- emulator_stream::start_emulator_stream: background tokio gRPC stream → frame_signal on the UI thread via floem's update_signal_from_channel bridge (portable; no native code). - examples/live_emulator: renders the live emulator via the wgpu VideoFrame primitive, for end-to-end verification against a running emulator. Panel integration (un-gating the macOS-only emulator panel for Win/Linux) is the remaining step; this verifies the portable pipeline first.
- Re-pin floem 37f48b8 -> e07fcd5 (adds aspect-preserving letterbox to the external-texture primitive); drop the dev path-patch. - live_emulator example: portrait window (380x820). - add grab_frame example (headless single-frame gRPC capture for verification).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lands M2 — the live Android-emulator stream rendered through the cross-platform wgpu
VideoFrameprimitive. Verified on a real emulator (Pixel_9a): live home screen, correct colors/orientation, aspect-preserved.What's here
emulator_stream::start_emulator_stream— background tokio gRPC stream → decoded frames →frame_signalon the UI thread (floemupdate_signal_from_channelbridge). Portable, no native code.e07fcd5(bridgerust/floem@feat/external-texture= upstream-latest + M1 atlas-bypassing primitive + aspect-ratio letterbox).live_emulator(GUI, renders the live device) andgrab_frame(headless single-frame capture).Verified
get_screenshot/stream → decode → RGBA: ✅ (live frames)Not in this PR (next)
#[cfg(target_os="macos")]; surfacing this on Windows/Linux means un-gating it.Sole author: dev-josias.