mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Update pixels::unmultiply_inplace
to support RB swap and use it in canvas_state (#35313)
* update unmultiply_inplace to handle reversed RGB Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> * Reuse unmultiply_inplace instead of manual compute; remove unused Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> --------- Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
parent
cb7688314b
commit
0de6d1bc3a
6 changed files with 13 additions and 4116 deletions
|
@ -2785,7 +2785,7 @@ fn prepare_pixels(
|
|||
},
|
||||
Some(AlphaTreatment::Unmultiply) => {
|
||||
assert!(pixel_format.is_some());
|
||||
unmultiply_inplace(pixels.to_mut());
|
||||
unmultiply_inplace::<false>(pixels.to_mut());
|
||||
},
|
||||
None => {},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue