Skip to content
Permalink
Browse files

WIP

  • Loading branch information
asajeffrey committed Mar 24, 2020
1 parent 9593b03 commit 14bc00919af600714671facee5094bf3f5783f66
Showing with 5 additions and 5 deletions.
  1. +3 −3 Cargo.lock
  2. +2 −2 components/canvas/webgl_thread.rs

Some generated files are not rendered by default. Learn more.

@@ -255,7 +255,7 @@ pub(crate) struct WebGLThread {
}

pub type WebGlExecutor = crossbeam_channel::Sender<WebGlRunnable>;
pub type WebGlRunnable = Box<dyn FnOnce() + Send>;
pub type WebGlRunnable = Box<dyn FnOnce(&Device) + Send>;
pub type SurfaceProviders = Arc<Mutex<HashMap<SessionId, SurfaceProvider>>>;
pub type SurfaceProvider = Box<dyn surfman_chains::SurfaceProvider<Device> + Send>;

@@ -346,7 +346,7 @@ impl WebGLThread {
}
recv(self.runnable_receiver) -> msg => {
if let Ok(msg) = msg {
msg();
msg(&self.device);
} else {
self.runnable_receiver = crossbeam_channel::never();
}

0 comments on commit 14bc009

Please sign in to comment.
You can’t perform that action at this time.