mirror of
https://github.com/servo/servo.git
synced 2025-09-02 19:18:23 +01:00
servoshell: Fix --no-default-features and make webxr optional on ohos/android (#34242)
* servoshell: fix --no-default-features The Embeddertraits only contain `register_webxr` if the webxr feature is enabled, hence we also need to guard the trait implementation. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * ohos/android: Make webxr optional in servoshell Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
47a243614f
commit
6b6697e97b
5 changed files with 16 additions and 4 deletions
|
@ -141,7 +141,12 @@ pub fn init(
|
|||
rendering_context.clone(),
|
||||
));
|
||||
|
||||
let embedder_callbacks = Box::new(ServoEmbedderCallbacks::new(waker, None, gl.clone()));
|
||||
let embedder_callbacks = Box::new(ServoEmbedderCallbacks::new(
|
||||
waker,
|
||||
#[cfg(feature = "webxr")]
|
||||
None,
|
||||
gl.clone(),
|
||||
));
|
||||
|
||||
let servo = Servo::new(
|
||||
embedder_callbacks,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue