aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2017-07-18 08:19:44 +0200
committerPaul Rouget <me@paulrouget.com>2017-08-15 08:22:09 +0200
commitd2413891292bfb4d5f17d7eb1e3882e07f6ac626 (patch)
tree17d2768aaa861740b6bcf638d2a3219086828a74 /components/script/dom/webglrenderingcontext.rs
parent817de1573556b49038d8b704398bb32e78296a43 (diff)
downloadservo-d2413891292bfb4d5f17d7eb1e3882e07f6ac626.tar.gz
servo-d2413891292bfb4d5f17d7eb1e3882e07f6ac626.zip
make use of ScriptToConstellationChan
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r--components/script/dom/webglrenderingcontext.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs
index 73d4ddba1b9..48e6996b85f 100644
--- a/components/script/dom/webglrenderingcontext.rs
+++ b/components/script/dom/webglrenderingcontext.rs
@@ -50,7 +50,7 @@ use js::typedarray::{TypedArray, TypedArrayElement, Float32, Int32};
use net_traits::image::base::PixelFormat;
use net_traits::image_cache::ImageResponse;
use offscreen_gl_context::{GLContextAttributes, GLLimits};
-use script_traits::ScriptMsg as ConstellationMsg;
+use script_traits::ScriptMsg;
use servo_config::prefs::PREFS;
use std::cell::Cell;
use std::collections::HashMap;
@@ -172,8 +172,8 @@ impl WebGLRenderingContext {
}
let (sender, receiver) = ipc::channel().unwrap();
- let constellation_chan = window.upcast::<GlobalScope>().constellation_chan();
- constellation_chan.send(ConstellationMsg::CreateWebGLPaintThread(size, attrs, sender))
+ let script_to_constellation_chan = window.upcast::<GlobalScope>().script_to_constellation_chan();
+ script_to_constellation_chan.send(ScriptMsg::CreateWebGLPaintThread(size, attrs, sender))
.unwrap();
let result = receiver.recv().unwrap();