Skip to content

Commit 0cdcedf

Browse files
vsn4iknicoburns
authored andcommitted
anyrender_skia skia-safe v0.90.0 → v0.91.0
1 parent d747934 commit 0cdcedf

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/anyrender_skia/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ peniko = { workspace = true }
2222
raw-window-handle = { workspace = true }
2323
softbuffer_window_renderer = { workspace = true, optional = true }
2424
pixels_window_renderer = { workspace = true, optional = true }
25-
skia-safe = { version = "0.90.0", features = ["gl", "pdf", "textlayout"]}
25+
skia-safe = { version = "0.91.0", features = ["gl", "pdf", "textlayout"]}
2626
oaty = "0.1"
2727
gl = "0.14.0"
2828
ash = "^0.38.0"
@@ -36,4 +36,4 @@ objc2-core-foundation = { version = "0.3.2", default-features = false }
3636
objc2-metal = { version = "0.3.2", default-features = false, features = ["MTLCommandBuffer", "MTLCommandQueue", "MTLDrawable", "MTLPixelFormat"] }
3737
objc2-app-kit = { version = "0.3.2", default-features = false, features = ["objc2-quartz-core", "NSView"] }
3838
objc2-quartz-core = { version = "0.3.2", default-features = false, features = ["objc2-core-foundation", "objc2-metal", "CAMetalLayer"] }
39-
skia-safe = { version = "0.90.0", features = ["metal"] }
39+
skia-safe = { version = "0.91.0", features = ["metal"] }

crates/anyrender_skia/src/opengl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl OpenGLBackend {
112112
gl::GetIntegerv(gl::FRAMEBUFFER_BINDING, &mut fboid);
113113
}
114114

115-
skia_safe::gpu::gl::FramebufferInfo {
115+
FramebufferInfo {
116116
fboid: fboid.try_into().unwrap(),
117117
format: skia_safe::gpu::gl::Format::RGBA8.into(),
118118
..Default::default()

crates/anyrender_skia/src/scene.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ mod sk_kurbo {
835835
use skia_safe::M44 as SkM44;
836836
use skia_safe::Matrix as SkMatrix;
837837
use skia_safe::Path as SkPath;
838+
use skia_safe::PathBuilder as SkPathBuilder;
838839
use skia_safe::Point as SkPoint;
839840
use skia_safe::RRect as SkRRect;
840841
use skia_safe::Rect as SkRect;
@@ -915,7 +916,7 @@ mod sk_kurbo {
915916
}
916917

917918
pub(super) fn path_from_shape(shape: &impl Shape) -> SkPath {
918-
let mut sk_path = SkPath::new();
919+
let mut sk_path = SkPathBuilder::new();
919920

920921
if let Some(path_els) = shape.as_path_slice() {
921922
for path_el in path_els {
@@ -927,10 +928,10 @@ mod sk_kurbo {
927928
}
928929
}
929930

930-
sk_path
931+
sk_path.detach()
931932
}
932933

933-
fn append_path_el_to_sk_path(path_el: &PathEl, sk_path: &mut SkPath) {
934+
fn append_path_el_to_sk_path(path_el: &PathEl, sk_path: &mut SkPathBuilder) {
934935
match path_el {
935936
PathEl::MoveTo(p) => _ = sk_path.move_to(pt_from(*p)),
936937
PathEl::LineTo(p) => _ = sk_path.line_to(pt_from(*p)),

0 commit comments

Comments
 (0)