feat(windowevent): expose CaptureWebRender event

This commit is contained in:
OJ Kwon 2018-03-16 10:01:02 -07:00
parent b943a711f5
commit 7b0beedf3d
No known key found for this signature in database
GPG key ID: 6C23A45602A44DA6
4 changed files with 21 additions and 1 deletions

View file

@ -333,6 +333,10 @@ impl<Window> Servo<Window> where Window: WindowMethods + 'static {
self.compositor.toggle_webrender_debug(option);
}
WindowEvent::CaptureWebRender => {
self.compositor.capture_webrender();
}
WindowEvent::NewBrowser(url, response_chan) => {
let msg = ConstellationMsg::NewBrowser(url, response_chan);
if let Err(e) = self.constellation_chan.send(msg) {