mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
WIP: Dedupe dependencies
This commit is contained in:
parent
8eb2a53e20
commit
6354cd9a5e
11 changed files with 49 additions and 144 deletions
|
@ -18,7 +18,7 @@ embedder_traits = {path = "../embedder_traits"}
|
|||
euclid = "0.17"
|
||||
gfx_traits = {path = "../gfx_traits"}
|
||||
gleam = {version = "0.5", optional = true}
|
||||
image = "0.18"
|
||||
image = "0.19"
|
||||
ipc-channel = "0.10"
|
||||
libc = "0.2"
|
||||
log = "0.4"
|
||||
|
|
|
@ -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