WEFT_OS/crates/weft-servo-shell/src
Marco Allegretti c15fe600fc feat(servo-shell): add EGL rendering context behind servo-embed feature gate
Add RenderingCtx enum wrapping SoftwareRenderingContext or
WindowRenderingContext. build_rendering_ctx() checks WEFT_EGL_RENDERING
at startup: if set, attempts WindowRenderingContext::new with the winit
display/window handles and falls back to software on error.

render_frame() dispatches on the variant: software path blits pixels
through softbuffer; EGL path is a no-op (Servo presents directly to
the EGL surface). All WebViewBuilder calls now use RenderingCtx::as_dyn()
to produce Rc<dyn RenderingContext>.

The software path is unchanged. The EGL path is gated behind
WEFT_EGL_RENDERING and only activates with the servo-embed feature.
2026-03-11 18:06:02 +01:00
..
protocols feat(servo-shell): add weft-shell-protocol client-side binding 2026-03-11 08:05:03 +01:00
appd_ws.rs feat(servo-shell): per-app WebView lifecycle driven by appd events (servo-embed only) 2026-03-11 17:59:12 +01:00
embedder.rs feat(servo-shell): add EGL rendering context behind servo-embed feature gate 2026-03-11 18:06:02 +01:00
keyutils.rs feat(servo-shell): input forwarding, weft-app URL resolution, weftIpc JS bridge (servo-embed only) 2026-03-11 17:52:37 +01:00
main.rs feat(servo-shell): per-app WebView lifecycle driven by appd events (servo-embed only) 2026-03-11 17:59:12 +01:00
shell_client.rs feat(servo-shell): implement weft-shell-protocol Wayland client 2026-03-11 14:59:58 +01:00