mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-26 17:03: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. |
||
|---|---|---|
| .. | ||
| weft-appd | ||
| weft-build-meta | ||
| weft-compositor | ||
| weft-file-portal | ||
| weft-ipc-types | ||
| weft-mount-helper | ||
| weft-pack | ||
| weft-runtime | ||
| weft-servo-shell | ||