mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01: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
|
@ -20,7 +20,7 @@ fn bench(c: &mut Criterion) {
|
|||
c.bench_function("unmultiply_inplace", move |b| {
|
||||
b.iter_batched(
|
||||
|| data.clone(),
|
||||
|mut data| pixels::unmultiply_inplace(&mut data),
|
||||
|mut data| pixels::unmultiply_inplace::<false>(&mut data),
|
||||
BatchSize::SmallInput,
|
||||
)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue