Improve paths deserialization (wasm) (#6501)

* ♻️ Refactor path wasm code to its own wasm submodule

* ♻️ Use unified enum for RawSegmentData and transmute to deserialize

* ♻️ Move set_shape_path_attrs to wasm::paths module

* 💄 Unify repr declarations
This commit is contained in:
Belén Albeza 2025-05-23 08:48:55 +02:00 committed by GitHub
parent eaaca5629e
commit f9bbf2d524
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 197 additions and 125 deletions

View file

@ -9,9 +9,7 @@ use crate::STATE;
const RAW_FILL_DATA_SIZE: usize = std::mem::size_of::<RawFillData>();
#[repr(C)]
#[repr(align(4))]
#[repr(u8)]
#[repr(C, u8, align(4))]
#[derive(Debug, PartialEq, Clone, Copy)]
#[allow(dead_code)]
pub enum RawFillData {