diff options
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r-- | components/servo/lib.rs | 13 |
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, |