servo/components/canvas
sagudev c01f65affb
canvas: Use Cow<[u8]> for bytes() getter (#37249)
I fell into trap of over-generalization in
https://github.com/servo/servo/pull/36793, but
https://github.com/servo/servo/pull/36821 showed `Cow<[u8]>` is all we
need (to reuse existing vec alloc or pass on a slice).

Testing: There are WPT tests, but it's just refactor so rust keeps us
safe.
Split of https://github.com/servo/servo/pull/36821

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2025-06-04 15:16:28 +00:00
..
backend.rs canvas: Use Cow<[u8]> for bytes() getter (#37249) 2025-06-04 15:16:28 +00:00
canvas_data.rs canvas: Use Cow<[u8]> for bytes() getter (#37249) 2025-06-04 15:16:28 +00:00
canvas_paint_thread.rs constellation: Wait for canvas thread to shut down before shutting down system font service (#37182) 2025-05-30 11:44:16 +00:00
Cargo.toml Removing unused dependencies in crates. (#37096) 2025-05-23 12:58:00 +00:00
lib.rs Use backend trait with associated types for 2d canvas backends abstraction (#36783) 2025-05-01 04:16:23 +00:00
raqote_backend.rs canvas: Use Cow<[u8]> for bytes() getter (#37249) 2025-06-04 15:16:28 +00:00