Skip to content

Commit

Permalink
Update image, glutin, and jni crates.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwalton committed Mar 27, 2020
1 parent b6762ce commit 9723fa4
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 100 deletions.
109 changes: 24 additions & 85 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/android/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate_type = ["cdylib"]
[dependencies]
egl = "0.2"
gl = "0.14"
jni = "0.14"
jni = "0.15"
lazy_static = "1.3"

[dependencies.pathfinder_demo]
Expand Down
4 changes: 2 additions & 2 deletions demo/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ rayon = "1.0"
usvg = "0.9"

[dependencies.image]
version = "0.22"
version = "0.23"
default-features = false
features = ["png_codec"]
features = ["png"]

[dependencies.log]
version = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion demo/common/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ impl<W> DemoApp<W> where W: Window {
&pixels,
drawable_size.x() as u32,
drawable_size.y() as u32,
ColorType::RGBA(8),
ColorType::Rgba8,
)
.unwrap();
}
Expand Down
2 changes: 1 addition & 1 deletion demo/magicleap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ usvg = "0.9"
egl = "0.2"
log = "0.4"
smallvec = "1.2"
glutin = { version = "0.22", optional = true }
glutin = { version = "0.23", optional = true }
crossbeam-channel = "0.4"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion examples/canvas_glutin_minimal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"

[dependencies]
gl = "0.14"
glutin = "0.22"
glutin = "0.23"

[dependencies.pathfinder_canvas]
path = "../../canvas"
Expand Down
4 changes: 2 additions & 2 deletions gpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ bitflags = "1.0"
half = "1.4"

[dependencies.image]
version = "0.22"
version = "0.23"
default-features = false
features = ["png_codec"]
features = ["png"]

[dependencies.pathfinder_color]
path = "../color"
Expand Down
2 changes: 1 addition & 1 deletion gpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub trait Device: Sized {

fn create_texture_from_png(&self, resources: &dyn ResourceLoader, name: &str) -> Self::Texture {
let data = resources.slurp(&format!("textures/{}.png", name)).unwrap();
let image = image::load_from_memory_with_format(&data, ImageFormat::PNG)
let image = image::load_from_memory_with_format(&data, ImageFormat::Png)
.unwrap()
.to_luma();
let size = Vector2I::new(image.width() as i32, image.height() as i32);
Expand Down
2 changes: 1 addition & 1 deletion utils/area-lut/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ authors = ["Patrick Walton <[email protected]>"]
[dependencies]
clap = "2.30"
euclid = "0.20"
image = "0.22"
image = "0.23"
2 changes: 1 addition & 1 deletion utils/gamma-lut/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ authors = ["Patrick Walton <[email protected]>"]
[dependencies]
clap = "2.27"
log = "0.4"
image = "0.22"
image = "0.23"
4 changes: 2 additions & 2 deletions utils/gamma-lut/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod gamma_lut;

use clap::{App, Arg};
use gamma_lut::GammaLut;
use image::{ImageBuffer, ImageLuma8, Luma};
use image::{DynamicImage, ImageBuffer, Luma};

const CONTRAST: f32 = 0.0;
const GAMMA: f32 = 0.0;
Expand Down Expand Up @@ -57,5 +57,5 @@ pub fn main() {

let output_path = matches.value_of("OUTPUT-PATH").unwrap();

ImageLuma8(image).save(output_path).unwrap();
DynamicImage::ImageLuma8(image).save(output_path).unwrap();
}
4 changes: 2 additions & 2 deletions webgl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ wasm-bindgen = "*"
log = "0.4.8"

[dependencies.image]
version = "0.21"
version = "0.23"
default-features = false
features = ["png_codec"]
features = ["png"]

[dependencies.pathfinder_geometry]
path = "../geometry"
Expand Down

0 comments on commit 9723fa4

Please sign in to comment.