зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1509496 - Update webrender to commit 9a903a2c6912d2651faddadf81e76bf743657d72 (WR PR #3340). r=kats
https://github.com/servo/webrender/pull/3340 Differential Revision: https://phabricator.services.mozilla.com/D12752 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ff99b1eae9
Коммит
b9c3702522
|
@ -1 +1 @@
|
|||
1ad9b79c3d19dec310077206002d09f5c7fb14cd
|
||||
9a903a2c6912d2651faddadf81e76bf743657d72
|
||||
|
|
|
@ -3717,3 +3717,22 @@ fn update_opacity_binding(
|
|||
binding.current
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(target_os = "linux")]
|
||||
fn test_struct_sizes() {
|
||||
// The sizes of these structures are critical for performance on a number of
|
||||
// talos stress tests. If you get a failure here on CI, there's two possibilities:
|
||||
// (a) You made a structure smaller than it currently is. Great work! Update the
|
||||
// test expectations and move on.
|
||||
// (b) You made a structure larger. This is not necessarily a problem, but should only
|
||||
// be done with care, and after checking if talos performance regresses badly.
|
||||
assert_eq!(mem::size_of::<PrimitiveContainer>(), 256, "PrimitiveContainer size changed");
|
||||
assert_eq!(mem::size_of::<PrimitiveInstance>(), 120, "PrimitiveInstance size changed");
|
||||
assert_eq!(mem::size_of::<PrimitiveInstanceKind>(), 16, "PrimitiveInstanceKind size changed");
|
||||
assert_eq!(mem::size_of::<PrimitiveTemplate>(), 176, "PrimitiveTemplate size changed");
|
||||
assert_eq!(mem::size_of::<PrimitiveTemplateKind>(), 112, "PrimitiveTemplateKind size changed");
|
||||
assert_eq!(mem::size_of::<PrimitiveKey>(), 152, "PrimitiveKey size changed");
|
||||
assert_eq!(mem::size_of::<PrimitiveKeyKind>(), 112, "PrimitiveKeyKind size changed");
|
||||
assert_eq!(mem::size_of::<Primitive>(), 280, "Primitive size changed");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче