Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 32 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ members = [
"examples/seven_guis",
"examples/todomvc",
"examples/wgpu_texture",
"examples/skia_paint_bench",
"examples/wasm_hello",
]
exclude = ["sites"]
Expand Down Expand Up @@ -115,7 +116,7 @@ skrifa = { version = "0.44", default-features = false, features = [
# AnyRender
anyrender = { version = "0.13.0" }
anyrender_serialize = { version = "0.7.0" }
anyrender_skia = { version = "0.11.0" }
anyrender_skia = { version = "0.11.0", default-features = false }
anyrender_vello = { version = "0.14.0" }
anyrender_vello_cpu = { version = "0.17.0" }
anyrender_vello_hybrid = { version = "0.10.0" }
Expand Down Expand Up @@ -288,6 +289,17 @@ wgpu = { workspace = true }
wgpu_context = { workspace = true }
rustc-hash = { workspace = true }

# Testing https://github.com/DioxusLabs/anyrender/pull/103 (Skia Graphite)
[patch.crates-io]
anyrender = { git = "https://github.com/DioxusLabs/anyrender", branch = "devin/1790696745-skia-graphite-metal" }
anyrender_serialize = { git = "https://github.com/DioxusLabs/anyrender", branch = "devin/1790696745-skia-graphite-metal" }
anyrender_skia = { git = "https://github.com/DioxusLabs/anyrender", branch = "devin/1790696745-skia-graphite-metal" }
anyrender_vello = { git = "https://github.com/DioxusLabs/anyrender", branch = "devin/1790696745-skia-graphite-metal" }
anyrender_vello_cpu = { git = "https://github.com/DioxusLabs/anyrender", branch = "devin/1790696745-skia-graphite-metal" }
anyrender_vello_hybrid = { git = "https://github.com/DioxusLabs/anyrender", branch = "devin/1790696745-skia-graphite-metal" }
anyrender_svg = { git = "https://github.com/DioxusLabs/anyrender", branch = "devin/1790696745-skia-graphite-metal" }
wgpu_context = { git = "https://github.com/DioxusLabs/anyrender", branch = "devin/1790696745-skia-graphite-metal" }

# [patch.crates-io]
# anyrender = { path = "../anyrender/crates/anyrender" }
# anyrender_skia = { path = "../anyrender/crates/anyrender_skia" }
Expand Down
1 change: 1 addition & 0 deletions apps/browser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ capture = ["dep:anyrender_serialize", "dep:blitz-paint", "dep:png", "dep:peniko"
vello = ["dioxus-native/vello"]
hybrid = ["dioxus-native/vello-hybrid"]
skia = ["dioxus-native/skia"]
skia-graphite = ["dioxus-native/skia-graphite"]
skia-raster = ["skia-raster-pixels"]
skia-raster-pixels = ["dioxus-native/skia-pixels"]
skia-raster-softbuffer = ["dioxus-native/skia-softbuffer"]
Expand Down
7 changes: 4 additions & 3 deletions apps/readme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ default = ["hybrid", "comrak", "floats", "scrollbars"]
# Renderers
gpu = ["dep:anyrender_vello"]
hybrid = ["dep:anyrender_vello_hybrid"]
skia = ["dep:anyrender_skia"]
skia-pixels = ["dep:anyrender_skia", "anyrender_skia/pixels_window_renderer"]
skia-softbuffer = ["dep:anyrender_skia", "anyrender_skia/softbuffer_window_renderer"]
skia = ["dep:anyrender_skia", "anyrender_skia/ganesh"]
skia-graphite = ["dep:anyrender_skia", "anyrender_skia/graphite"]
skia-pixels = ["dep:anyrender_skia", "anyrender_skia/ganesh", "anyrender_skia/pixels_window_renderer"]
skia-softbuffer = ["dep:anyrender_skia", "anyrender_skia/ganesh", "anyrender_skia/softbuffer_window_renderer"]
cpu = ["cpu-pixels"]
cpu-pixels = ["cpu-base", "anyrender_vello_cpu/pixels_window_renderer"]
cpu-softbuffer = ["cpu-base", "anyrender_vello_cpu/softbuffer_window_renderer"]
Expand Down
2 changes: 1 addition & 1 deletion apps/readme/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mod markdown {
pub(crate) use pulldown_cmark::*;
}

#[cfg(feature = "skia")]
#[cfg(any(feature = "skia", feature = "skia-graphite"))]
use anyrender_skia::SkiaWindowRenderer as WindowRenderer;
#[cfg(feature = "skia-pixels")]
use anyrender_skia::raster::SkiaRasterWindowRenderer as WindowRenderer;
Expand Down
26 changes: 26 additions & 0 deletions examples/skia_paint_bench/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "skia_paint_bench"
version = "0.1.0"
edition = "2024"
license.workspace = true
publish = false

[features]
default = ["ganesh"]
# Pick one: rust-skia only publishes prebuilt binaries with a single GPU engine enabled.
ganesh = ["anyrender_skia/ganesh"]
graphite = ["anyrender_skia/graphite"]

[target.'cfg(target_os = "macos")'.dependencies]
anyrender = { workspace = true }
anyrender_skia = { workspace = true }
blitz-dom = { workspace = true, features = ["default"] }
blitz-html = { workspace = true }
blitz-net = { workspace = true }
blitz-paint = { workspace = true, features = ["default"] }
blitz-traits = { workspace = true }
reqwest = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
skia-safe = { version = "0.153.3", features = ["metal"] }
objc2 = "0.6"
objc2-metal = { version = "0.3", default-features = false, features = ["std", "MTLDevice", "MTLCommandQueue"] }
Loading
Loading