Skip to content

Commit dcefd7b

Browse files
authored
Merge pull request rust-windowing#246 from s3bk/usvg_0.8
update usvg to 0.8
2 parents 0662f64 + e38e2d8 commit dcefd7b

File tree

8 files changed

+203
-232
lines changed

8 files changed

+203
-232
lines changed

Cargo.lock

+195-224
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/common/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pf-gl = []
1111
clap = "2.32"
1212
gl = "0.6"
1313
rayon = "1.0"
14-
usvg = "0.7"
14+
usvg = "0.8"
1515

1616
[dependencies.image]
1717
version = "0.21"

demo/magicleap/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = ["Alan Jeffrey <ajeffrey@mozilla.com>"]
77
[dependencies]
88
gl = "0.6"
99
rayon = "1.0"
10-
usvg = "0.7"
10+
usvg = "0.8"
1111
egl = "0.2"
1212
log = "0.4"
1313
smallvec = "0.6"

svg/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["Patrick Walton <pcwalton@mimiga.net>"]
66

77
[dependencies]
88
bitflags = "1.0"
9-
usvg = "0.7"
9+
usvg = "0.8"
1010

1111
[dependencies.pathfinder_content]
1212
path = "../content"

svg/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl BuiltSVG {
118118
&mut self.result_flags,
119119
));
120120

121-
let path = UsvgPathToSegments::new(path.segments.iter().cloned());
121+
let path = UsvgPathToSegments::new(path.data.iter().cloned());
122122
let path = Transform2FPathIter::new(path, &transform);
123123
let outline = Outline::from_segments(path);
124124

@@ -140,7 +140,7 @@ impl BuiltSVG {
140140
stroke.miterlimit.value() as f32),
141141
};
142142

143-
let path = UsvgPathToSegments::new(path.segments.iter().cloned());
143+
let path = UsvgPathToSegments::new(path.data.iter().cloned());
144144
let outline = Outline::from_segments(path);
145145

146146
let mut stroke_to_fill = OutlineStrokeToFill::new(&outline, stroke_style);

utils/convert/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ edition = "2018"
99
[dependencies]
1010
pathfinder_export = { path = "../../export" }
1111
pathfinder_svg = { path = "../../svg" }
12-
usvg = "*"
12+
usvg = "0.8"

utils/svg-to-skia/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ authors = ["Patrick Walton <pcwalton@mimiga.net>"]
55
edition = "2018"
66

77
[dependencies]
8-
usvg = "0.7"
8+
usvg = "0.8"

utils/svg-to-skia/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn process_node(node: &Node) {
4545
}
4646
}
4747
NodeKind::Path(ref path) => {
48-
for segment in path.segments.iter() {
48+
for segment in path.data.iter() {
4949
match segment {
5050
PathSegment::MoveTo { x, y } => println!(" path.moveTo({}, {});", x, y),
5151
PathSegment::LineTo { x, y } => println!(" path.lineTo({}, {});", x, y),

0 commit comments

Comments
 (0)