aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo/lib.rs
diff options
context:
space:
mode:
authorImanol Fernandez <mortimergoro@gmail.com>2017-09-21 15:16:46 +0200
committerImanol Fernandez <mortimergoro@gmail.com>2017-10-16 20:56:53 +0200
commit8ae0739bab8a3c74e0685d9f53bbb155e4458aba (patch)
treee1521882893206d2dd3bf06de5260f7bf0994cb7 /components/servo/lib.rs
parenta9022be0c3e30249845ca5947ac0c0a6743c7991 (diff)
downloadservo-8ae0739bab8a3c74e0685d9f53bbb155e4458aba.tar.gz
servo-8ae0739bab8a3c74e0685d9f53bbb155e4458aba.zip
Implement DOM to texture
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r--components/servo/lib.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs
index 262f5a22130..75b07015037 100644
--- a/components/servo/lib.rs
+++ b/components/servo/lib.rs
@@ -553,13 +553,18 @@ fn create_constellation(user_agent: Cow<'static, str>,
};
// Initialize WebGL Thread entry point.
- let (webgl_threads, image_handler) = WebGLThreads::new(gl_factory,
- window_gl,
- webrender_api_sender.clone(),
- webvr_compositor.map(|c| c as Box<_>));
+ let (webgl_threads, image_handler, output_handler) = WebGLThreads::new(gl_factory,
+ window_gl,
+ webrender_api_sender.clone(),
+ webvr_compositor.map(|c| c as Box<_>));
// Set webrender external image handler for WebGL textures
webrender.set_external_image_handler(image_handler);
+ // Set DOM to texture handler, if enabled.
+ if let Some(output_handler) = output_handler {
+ webrender.set_output_image_handler(output_handler);
+ }
+
let initial_state = InitialConstellationState {
compositor_proxy,
embedder_proxy,