mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
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. |
||
|---|---|---|
| .. | ||
| protocols | ||
| appd_ws.rs | ||
| embedder.rs | ||
| keyutils.rs | ||
| main.rs | ||
| shell_client.rs | ||