mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Prefix some pixels functions with rgba8_
This commit is contained in:
parent
adf363a208
commit
a5779ad372
9 changed files with 15 additions and 15 deletions
|
@ -950,7 +950,7 @@ pub fn rgba8_image_to_tex_image_data(
|
|||
pub fn premultiply_inplace(format: TexFormat, data_type: TexDataType, pixels: &mut [u8]) {
|
||||
match (format, data_type) {
|
||||
(TexFormat::RGBA, TexDataType::UnsignedByte) => {
|
||||
pixels::premultiply_inplace(pixels);
|
||||
pixels::rgba8_premultiply_inplace(pixels);
|
||||
},
|
||||
(TexFormat::LuminanceAlpha, TexDataType::UnsignedByte) => {
|
||||
for la in pixels.chunks_mut(2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue