diff options
author | Dzmitry Malyshau <kvark@mozilla.com> | 2018-04-17 15:16:50 -0400 |
---|---|---|
committer | Dzmitry Malyshau <kvark@mozilla.com> | 2018-04-18 22:40:47 -0400 |
commit | 7fa295d8e614b316ada1561be572774197edeb48 (patch) | |
tree | 9e9ade3cfa7488b8c19f32d767e16d2428d13669 /components/compositing/windowing.rs | |
parent | 3695fc4efc5a463175b301c71f3a3a7fe3b5c5a9 (diff) | |
download | servo-7fa295d8e614b316ada1561be572774197edeb48.tar.gz servo-7fa295d8e614b316ada1561be572774197edeb48.zip |
Make gleam optional for compositor, switch various names from glutin to winit
Diffstat (limited to 'components/compositing/windowing.rs')
-rw-r--r-- | components/compositing/windowing.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/compositing/windowing.rs b/components/compositing/windowing.rs index 4bfe455ab5b..11143e5eaa9 100644 --- a/components/compositing/windowing.rs +++ b/components/compositing/windowing.rs @@ -6,6 +6,7 @@ use compositor_thread::EventLoopWaker; use euclid::TypedScale; +#[cfg(feature = "gleam")] use gleam::gl; use ipc_channel::ipc::IpcSender; use msg::constellation_msg::{Key, KeyModifiers, KeyState, TopLevelBrowsingContextId, TraversalDirection}; @@ -13,6 +14,7 @@ use script_traits::{MouseButton, TouchEventType, TouchId}; use servo_geometry::{DeviceIndependentPixel, DeviceUintLength}; use servo_url::ServoUrl; use std::fmt::{Debug, Error, Formatter}; +#[cfg(feature = "gleam")] use std::rc::Rc; use style_traits::DevicePixel; use webrender_api::{DeviceIntPoint, DevicePoint, DeviceUintSize, DeviceUintRect, ScrollLocation}; @@ -126,6 +128,7 @@ pub trait WindowMethods { /// proceed and false if it should not. fn prepare_for_composite(&self, width: DeviceUintLength, height: DeviceUintLength) -> bool; /// Return the GL function pointer trait. + #[cfg(feature = "gleam")] fn gl(&self) -> Rc<gl::Gl>; /// Returns a thread-safe object to wake up the window's event loop. fn create_event_loop_waker(&self) -> Box<EventLoopWaker>; |