-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use gfx::Transform::Decompose/Blend/Compose/Accumulate for blink 2d/3d
Add gfx::AccumulateDecomposedTransforms() which extracts the original blink::Matrix3DTransformOperation::Accumulate(). Let blink::MatrixTransformOperation use the unified 2d/3d version of interpolation methods. There is a difference between gfx::Transform::Blend() and the original blink::TransformationMatrix::Blend() when |this| or |from| can't be decomposed: - gfx::Transform::Blend() returns false and doesn't change |this|. - The original blink::TransformationMatrix::Blend() automatically sets |this| to |from| if |progress| < 0.5. Modified callers to use the gfx::Transform::Blend() convention and to perform discrete interpolation as necessary. Bug: 1359528 Change-Id: I320b3a469a8271140dc02ef82f6571642b989c44 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3979782 Owners-Override: Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Kevin Ellis <kevers@chromium.org> Cr-Commit-Position: refs/heads/main@{#1068969}
- Loading branch information
1 parent
ea91f9e
commit 91ca54c
Showing
14 changed files
with
129 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.