diff options
author | Martin Robinson <mrobinson@igalia.com> | 2025-01-31 17:41:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-31 16:41:57 +0000 |
commit | 5466c27f6f9a151ae7f5357cb663cc2580fbca15 (patch) | |
tree | a306c16a4fc0af3fa8ab3976de0b5c79f8503de1 /components/shared/webxr/frame.rs | |
parent | a4c6c205d2d26dd16ac1cd03e73a0262eb4c12f4 (diff) | |
download | servo-5466c27f6f9a151ae7f5357cb663cc2580fbca15.tar.gz servo-5466c27f6f9a151ae7f5357cb663cc2580fbca15.zip |
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>
Diffstat (limited to 'components/shared/webxr/frame.rs')
-rw-r--r-- | components/shared/webxr/frame.rs | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/components/shared/webxr/frame.rs b/components/shared/webxr/frame.rs index 2589953ecba..d97a212dbcd 100644 --- a/components/shared/webxr/frame.rs +++ b/components/shared/webxr/frame.rs @@ -2,20 +2,14 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -use crate::Floor; -use crate::HitTestId; -use crate::HitTestResult; -use crate::InputFrame; -use crate::Native; -use crate::SubImages; -use crate::Viewer; -use crate::Viewports; -use crate::Views; - use euclid::RigidTransform3D; +use crate::{ + Floor, HitTestId, HitTestResult, InputFrame, Native, SubImages, Viewer, Viewports, Views, +}; + /// The per-frame data that is provided by the device. -/// https://www.w3.org/TR/webxr/#xrframe +/// <https://www.w3.org/TR/webxr/#xrframe> // TODO: other fields? #[derive(Clone, Debug)] #[cfg_attr(feature = "ipc", derive(serde::Serialize, serde::Deserialize))] |