mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
libservo: Expose a ServoBuilder
(#36549)
Expose a `ServoBuilder` for easily creating Servo instances using default values. This change enables removing `EmbedderTraits`. Testing: This is covered by `Servo` unit tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
7a8e75266f
commit
d8a7abda69
17 changed files with 252 additions and 271 deletions
|
@ -26,6 +26,7 @@ openxr-api = ["angle", "openxr", "winapi", "wio", "surfman/sm-angle-default"]
|
|||
|
||||
[dependencies]
|
||||
crossbeam-channel = { workspace = true }
|
||||
embedder_traits = { workspace = true }
|
||||
euclid = { workspace = true }
|
||||
glow = { workspace = true }
|
||||
log = { workspace = true }
|
||||
|
|
|
@ -19,3 +19,8 @@ pub type MainThreadRegistry = webxr_api::MainThreadRegistry<surfman_layer_manage
|
|||
pub type Discovery = Box<dyn webxr_api::DiscoveryAPI<SurfmanGL>>;
|
||||
|
||||
pub(crate) mod gl_utils;
|
||||
|
||||
pub trait WebXrRegistry {
|
||||
/// Register services with a WebXR Registry.
|
||||
fn register(&self, _: &mut MainThreadRegistry) {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue