зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1680257 - Use default initialization for qcms_modular_transform. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D98467
This commit is contained in:
Родитель
96ee4b6e22
Коммит
c949054c94
|
@ -35,8 +35,7 @@ use crate::{
|
||||||
};
|
};
|
||||||
use ::libc::{self, free, malloc, memcpy};
|
use ::libc::{self, free, malloc, memcpy};
|
||||||
|
|
||||||
#[repr(C)]
|
#[derive(Clone, Default)]
|
||||||
#[derive(Clone)]
|
|
||||||
pub struct qcms_modular_transform {
|
pub struct qcms_modular_transform {
|
||||||
pub matrix: matrix,
|
pub matrix: matrix,
|
||||||
pub tx: f32,
|
pub tx: f32,
|
||||||
|
@ -688,8 +687,8 @@ unsafe extern "C" fn qcms_transform_module_matrix(
|
||||||
i = i + 1
|
i = i + 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unsafe extern "C" fn qcms_modular_transform_alloc() -> Option<Box<qcms_modular_transform>> {
|
fn qcms_modular_transform_alloc() -> Option<Box<qcms_modular_transform>> {
|
||||||
return Some(Box::new(std::mem::zeroed()))
|
return Some(Box::new(Default::default()))
|
||||||
}
|
}
|
||||||
fn qcms_modular_transform_release(mut t: Option<Box<qcms_modular_transform>>) {
|
fn qcms_modular_transform_release(mut t: Option<Box<qcms_modular_transform>>) {
|
||||||
// destroy a list of transforms non-recursively
|
// destroy a list of transforms non-recursively
|
||||||
|
|
Загрузка…
Ссылка в новой задаче