Skip to main content

is_surface_engine

Function is_surface_engine 

Source
pub fn is_surface_engine(engine_id: &str) -> bool
Expand description

Whether engine_id names a tier-2 surface engine — one that produces GPU frames (a system WebView via ENGINE_SCRYING_WEB; CEF via weld and Servo via graft when those land) rather than a portable EngineDocument. Surface engines go through the SurfaceEngineRegistry / producer path; document engines go through the EngineRegistry. A host branches on this to pick the lane.