mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Finish the integration of webxr
into the Cargo workspace (#35229)
- Run `cargo fmt` on `webxr` and `webxr-api` - Fix clippy warnings in the existing `webxr` code - Integrate the new crates into the workspace - Expose `webxr` via the libservo API rather than requiring embedders to depend on it explicitly. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
a4c6c205d2
commit
5466c27f6f
41 changed files with 448 additions and 649 deletions
|
@ -35,7 +35,7 @@ pub struct InitOptions {
|
|||
pub coordinates: Coordinates,
|
||||
pub density: f32,
|
||||
#[cfg(feature = "webxr")]
|
||||
pub xr_discovery: Option<webxr::Discovery>,
|
||||
pub xr_discovery: Option<servo::webxr::Discovery>,
|
||||
pub surfman_integration: SurfmanIntegration,
|
||||
}
|
||||
|
||||
|
|
|
@ -681,13 +681,13 @@ impl ServoGlue {
|
|||
pub(super) struct ServoEmbedderCallbacks {
|
||||
waker: Box<dyn EventLoopWaker>,
|
||||
#[cfg(feature = "webxr")]
|
||||
xr_discovery: Option<webxr::Discovery>,
|
||||
xr_discovery: Option<servo::webxr::Discovery>,
|
||||
}
|
||||
|
||||
impl ServoEmbedderCallbacks {
|
||||
pub(super) fn new(
|
||||
waker: Box<dyn EventLoopWaker>,
|
||||
#[cfg(feature = "webxr")] xr_discovery: Option<webxr::Discovery>,
|
||||
#[cfg(feature = "webxr")] xr_discovery: Option<servo::webxr::Discovery>,
|
||||
) -> Self {
|
||||
Self {
|
||||
waker,
|
||||
|
@ -706,7 +706,7 @@ impl EmbedderMethods for ServoEmbedderCallbacks {
|
|||
#[cfg(feature = "webxr")]
|
||||
fn register_webxr(
|
||||
&mut self,
|
||||
registry: &mut webxr::MainThreadRegistry,
|
||||
registry: &mut servo::webxr::MainThreadRegistry,
|
||||
_embedder_proxy: EmbedderProxy,
|
||||
) {
|
||||
debug!("EmbedderMethods::register_xr");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue