mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
canvas: Respect FillRule (#38294)
We just need to pass user provided FillRule via IPC to canvas paint thread, then pass it all down to backend, which will handle it. Testing: Added WPT tests. --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
4188852963
commit
bc71fb8c0d
22 changed files with 693 additions and 32 deletions
|
@ -207,3 +207,12 @@ impl Convert<peniko::ImageQuality> for Filter {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Convert<peniko::Fill> for FillRule {
|
||||
fn convert(self) -> peniko::Fill {
|
||||
match self {
|
||||
FillRule::Nonzero => peniko::Fill::NonZero,
|
||||
FillRule::Evenodd => peniko::Fill::EvenOdd,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue