WR multi-document support

This commit is contained in:
Dzmitry Malyshau 2017-11-17 12:03:50 -05:00 committed by Anthony Ramine
parent d1e4fdb7fa
commit ba214bcec5
8 changed files with 90 additions and 71 deletions

View file

@ -204,7 +204,8 @@ impl<Window> Servo<Window> where Window: WindowMethods + 'static {
};
let webrender_api = webrender_api_sender.create_api();
let webrender_document = webrender_api.add_document(window.framebuffer_size());
let wr_document_layer = 0; //TODO
let webrender_document = webrender_api.add_document(window.framebuffer_size(), wr_document_layer);
// Important that this call is done in a single-threaded fashion, we
// can't defer it after `create_constellation` has started.