mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Implement an FFI and matrix conversions for matrix decomposition/interpolation/recomposition.
We use Servo backend to decompose/interpolate/recompose matrices on both main thread and compositor thread.
This commit is contained in:
parent
1a3845b719
commit
1d44c273d3
5 changed files with 4392 additions and 4010 deletions
|
@ -1,6 +1,7 @@
|
|||
/* automatically generated by rust-bindgen */
|
||||
|
||||
pub use nsstring::{nsACString, nsAString, nsString, nsStringRepr};
|
||||
use gecko_bindings::structs::nsStyleTransformMatrix;
|
||||
use gecko_bindings::structs::nsTArray;
|
||||
type nsACString_internal = nsACString;
|
||||
type nsAString_internal = nsAString;
|
||||
|
@ -209,6 +210,10 @@ use gecko_bindings::structs::ParsingMode;
|
|||
use gecko_bindings::structs::InheritTarget;
|
||||
use gecko_bindings::structs::URLMatchingFunction;
|
||||
use gecko_bindings::structs::StyleRuleInclusion;
|
||||
use gecko_bindings::structs::nsStyleTransformMatrix::MatrixTransformOperator;
|
||||
unsafe impl Send for nsStyleTransformMatrix::MatrixTransformOperator {}
|
||||
unsafe impl Sync for nsStyleTransformMatrix::MatrixTransformOperator {}
|
||||
use gecko_bindings::structs::RawGeckoGfxMatrix4x4;
|
||||
pub type nsTArrayBorrowed_uintptr_t<'a> = &'a mut ::gecko_bindings::structs::nsTArray<usize>;
|
||||
pub type RawServoStyleSetOwned = ::gecko_bindings::sugar::ownership::Owned<RawServoStyleSet>;
|
||||
pub type RawServoStyleSetOwnedOrNull = ::gecko_bindings::sugar::ownership::OwnedOrNull<RawServoStyleSet>;
|
||||
|
@ -2183,6 +2188,15 @@ extern "C" {
|
|||
arg3:
|
||||
nsCSSPropertyIDSetBorrowedMut);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MatrixTransform_Operate(matrix_operator:
|
||||
MatrixTransformOperator,
|
||||
from: *const RawGeckoGfxMatrix4x4,
|
||||
to: *const RawGeckoGfxMatrix4x4,
|
||||
progress: f64,
|
||||
result:
|
||||
*mut RawGeckoGfxMatrix4x4);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_AnimationValues_Interpolate(from:
|
||||
RawServoAnimationValueBorrowed,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue