mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
WIP: Dedupe dependencies
This commit is contained in:
parent
8eb2a53e20
commit
6354cd9a5e
11 changed files with 49 additions and 144 deletions
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue