aboutsummaryrefslogtreecommitdiffstats
path: root/ports/servoshell/desktop/headless_window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ports/servoshell/desktop/headless_window.rs')
-rw-r--r--ports/servoshell/desktop/headless_window.rs23
1 files changed, 2 insertions, 21 deletions
diff --git a/ports/servoshell/desktop/headless_window.rs b/ports/servoshell/desktop/headless_window.rs
index fc4412197b6..cb9aecb909d 100644
--- a/ports/servoshell/desktop/headless_window.rs
+++ b/ports/servoshell/desktop/headless_window.rs
@@ -9,14 +9,13 @@ use std::rc::Rc;
use std::sync::RwLock;
use euclid::num::Zero;
-use euclid::{Box2D, Length, Point2D, Rotation3D, Scale, Size2D, UnknownUnit, Vector3D};
+use euclid::{Box2D, Length, Point2D, Scale, Size2D};
use servo::compositing::windowing::{
AnimationState, EmbedderCoordinates, EmbedderEvent, WindowMethods,
};
use servo::config::opts;
use servo::servo_geometry::DeviceIndependentPixel;
use servo::webrender_api::units::{DeviceIntSize, DevicePixel};
-use surfman::{Context, Device};
use crate::desktop::window_trait::WindowPortsMethods;
@@ -124,7 +123,7 @@ impl WindowPortsMethods for Window {
fn new_glwindow(
&self,
_events_loop: &winit::event_loop::ActiveEventLoop,
- ) -> Box<dyn webxr::glwindow::GlWindow> {
+ ) -> Rc<dyn webxr::glwindow::GlWindow> {
unimplemented!()
}
@@ -158,21 +157,3 @@ impl WindowMethods for Window {
self.animation_state.set(state);
}
}
-
-impl webxr::glwindow::GlWindow for Window {
- fn get_render_target(
- &self,
- _device: &mut Device,
- _context: &mut Context,
- ) -> webxr::glwindow::GlWindowRenderTarget {
- unimplemented!()
- }
-
- fn get_rotation(&self) -> Rotation3D<f32, UnknownUnit, UnknownUnit> {
- Rotation3D::identity()
- }
-
- fn get_translation(&self) -> Vector3D<f32, UnknownUnit> {
- Vector3D::zero()
- }
-}