mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
feat(windowevent): expose CaptureWebRender event
This commit is contained in:
parent
b943a711f5
commit
7b0beedf3d
4 changed files with 21 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue