mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
canvas: Use bytemuck to remove unsafe from raqote backend (#38283)
This PR changes surface type from `Vec<u8>` to `Vec<u32>` as this is native type of raqote's backend. We used unsafe for `Vec<u8>` <-> `Vec<u32>` casting that is replaced with bytemuck. Bytemuck is already in cargo lock. Testing: Existing WPT tests. Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
daebb5a033
commit
f8d6c5646c
4 changed files with 41 additions and 57 deletions
|
@ -16,6 +16,7 @@ vello = ["dep:vello", "dep:pollster", "dep:futures-intrusive", "dep:peniko"]
|
|||
|
||||
[dependencies]
|
||||
app_units = { workspace = true }
|
||||
bytemuck = { workspace = true, features = ["extern_crate_alloc"] }
|
||||
canvas_traits = { workspace = true }
|
||||
compositing_traits = { workspace = true }
|
||||
crossbeam-channel = { workspace = true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue