Provide webrender_api::RenderApiSender to ScriptThread and DOM Window

This will allow the HTMLMediaElement later to get a handle to the
RenderApi for rendering video frames.

At a later time, all media handling should be moved to its own
thread/process that is communicated with via IPC. At that point this
can be removed again.

Original-patch-by: Sebastian Dröge <sebastian@centricular.com>
This commit is contained in:
Víctor Manuel Jáquez Leal 2018-08-22 18:13:13 +02:00 committed by Fernando Jiménez Moreno
parent 77c7eda0bf
commit 781b3b712b
4 changed files with 32 additions and 3 deletions

View file

@ -517,6 +517,7 @@ impl UnprivilegedPipelineContent {
webgl_chan: self.webgl_chan,
webvr_chan: self.webvr_chan,
webrender_document: self.webrender_document,
webrender_api_sender: self.webrender_api_sender.clone(),
},
self.load_data.clone(),
);