mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove as_slice() calls from script.
This commit is contained in:
parent
ef536372cd
commit
a862479ca8
42 changed files with 115 additions and 124 deletions
|
@ -264,10 +264,7 @@ impl CanvasRenderingContext2D {
|
|||
};
|
||||
// Pixels come from cache in BGRA order and drawImage expects RGBA so we
|
||||
// have to swap the color values
|
||||
{
|
||||
let mut pixel_colors = image_data.as_mut_slice();
|
||||
byte_swap(pixel_colors);
|
||||
}
|
||||
byte_swap(&mut image_data);
|
||||
return Some((image_data, image_size));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue