canvas: Move peniko/kurbo conversions in separate file (#38279)

This will allow reusing those conversions in vello_cpu backend.

Testing: Just refactor

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev 2025-07-26 15:14:25 +02:00 committed by GitHub
parent 4d899ecba5
commit daebb5a033
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 224 additions and 210 deletions

View file

@ -12,7 +12,7 @@ name = "canvas"
path = "lib.rs"
[features]
vello = ["dep:vello", "dep:pollster", "dep:futures-intrusive"]
vello = ["dep:vello", "dep:pollster", "dep:futures-intrusive", "dep:peniko"]
[dependencies]
app_units = { workspace = true }
@ -27,6 +27,7 @@ ipc-channel = { workspace = true }
kurbo = { workspace = true }
log = { workspace = true }
net_traits = { workspace = true }
peniko = { workspace = true, optional = true }
pixels = { path = "../pixels" }
range = { path = "../range" }
raqote = "0.8.5"