diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2019-07-24 13:48:25 -0500 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2019-07-25 12:55:26 -0500 |
commit | 701256d83761631e9c2754f65c3a6c8ea2a0bc4f (patch) | |
tree | 1062b7f60bf29f0066bbebca565201db26aad914 /components/embedder_traits/lib.rs | |
parent | c9dde3a4bb9a6e4c8d69888a21c7117129f8f95e (diff) | |
download | servo-701256d83761631e9c2754f65c3a6c8ea2a0bc4f.tar.gz servo-701256d83761631e9c2754f65c3a6c8ea2a0bc4f.zip |
Pass the event loop waker into WebXR
Diffstat (limited to 'components/embedder_traits/lib.rs')
-rw-r--r-- | components/embedder_traits/lib.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/components/embedder_traits/lib.rs b/components/embedder_traits/lib.rs index 7622f0e5822..949b3ba5acb 100644 --- a/components/embedder_traits/lib.rs +++ b/components/embedder_traits/lib.rs @@ -21,6 +21,8 @@ use servo_url::ServoUrl; use std::fmt::{Debug, Error, Formatter}; use webrender_api::units::{DeviceIntPoint, DeviceIntSize}; +pub use webxr_api::MainThreadWaker as EventLoopWaker; + /// A cursor for the window. This is different from a CSS cursor (see /// `CursorKind`) in that it has no `Auto` value. #[repr(u8)] @@ -63,12 +65,6 @@ pub enum Cursor { ZoomOut, } -/// Used to wake up the event loop, provided by the servo port/embedder. -pub trait EventLoopWaker: 'static + Send { - fn clone(&self) -> Box<dyn EventLoopWaker + Send>; - fn wake(&self); -} - /// Sends messages to the embedder. pub struct EmbedderProxy { pub sender: Sender<(Option<TopLevelBrowsingContextId>, EmbedderMsg)>, |