WIP: Dedupe dependencies

This commit is contained in:
Bastien Orivel 2018-07-12 22:07:19 +02:00 committed by Glenn Watson
parent 8eb2a53e20
commit 6354cd9a5e
11 changed files with 49 additions and 144 deletions

View file

@ -281,6 +281,7 @@ impl webrender_api::RenderNotifier for RenderNotifier {
_document_id: webrender_api::DocumentId,
scrolled: bool,
composite_needed: bool,
_render_time_ns: Option<u64>,
) {
if scrolled {
self.compositor_proxy.send(Msg::NewScrollFrameReady(composite_needed));
@ -1268,7 +1269,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
Ok(mut file) => {
let img = gl::draw_img(gl, rt_info, width, height);
let dynamic_image = DynamicImage::ImageRgb8(img);
if let Err(e) = dynamic_image.save(&mut file, ImageFormat::PNG) {
if let Err(e) = dynamic_image.write_to(&mut file, ImageFormat::PNG) {
error!("Failed to save {} ({}).", path, e);
}
},