Skip to content

Commit

Permalink
Auto merge of #7 - servo:fixes, r=asajeffrey
Browse files Browse the repository at this point in the history
Some fixes

None
  • Loading branch information
bors-servo committed Jul 8, 2019
2 parents 39600af + b2aa1a9 commit 8be96b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions webxr-api/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub use frame::Frame;

pub use registry::MainThreadRegistry;
pub use registry::Registry;
pub use registry::{SessionRequestCallback, SessionSupportCallback};

pub use session::FrameRequestCallback;
pub use session::HighResTimeStamp;
Expand Down
10 changes: 5 additions & 5 deletions webxr/glwindow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ const NEAR: f32 = 0.1;
const FAR: f32 = 100.0;

pub struct GlWindowDiscovery {
gl: Rc<Gl>,
gl: Rc<dyn Gl>,
events_loop_factory: EventsLoopFactory,
gl_version: GlRequest,
}

impl GlWindowDiscovery {
pub fn new(
gl: Rc<Gl>,
gl: Rc<dyn Gl>,
events_loop_factory: EventsLoopFactory,
gl_version: GlRequest,
) -> GlWindowDiscovery {
Expand Down Expand Up @@ -78,7 +78,7 @@ impl Discovery for GlWindowDiscovery {
pub struct GlWindowDevice {
size: PhysicalSize,
gl_context: WindowedContext<PossiblyCurrent>,
gl: Rc<Gl>,
gl: Rc<dyn Gl>,
// This will become used when we support keyboard bindings for the WebXR glwindow
#[allow(dead_code)]
events_loop: EventsLoop,
Expand Down Expand Up @@ -133,7 +133,7 @@ impl Device for GlWindowDevice {

impl GlWindowDevice {
fn new(
gl: Rc<Gl>,
gl: Rc<dyn Gl>,
gl_version: glutin::GlRequest,
events_loop: glutin::EventsLoop,
) -> Result<GlWindowDevice, Error> {
Expand Down Expand Up @@ -177,4 +177,4 @@ impl GlWindowDevice {
}
}

pub type EventsLoopFactory = Box<Fn() -> Result<EventsLoop, EventsLoopClosed>>;
pub type EventsLoopFactory = Box<dyn Fn() -> Result<EventsLoop, EventsLoopClosed>>;

0 comments on commit 8be96b3

Please sign in to comment.