Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make gfx::Matrix44 API similar to SkM44: Remove Matrix44::set3x3()
Matrix44::set3x3() (which set top-left 3x3 of the matrix) was confusing with Matrix44(SkMatrix) which sets the matrix from a 3x3 matrix by setting the 3rd row and the 3rd column to identity. The col-major order of parameters is also different form the row-major order used in the constructors of SkM44 and gfx::Transform. It was used mostly to create rotation matrices. These usages are replaced with gfx::Matrix44::setRotate*(). gfx::Matrix44::setRotateUnitSinCos() is added following SkM44::setRotateUnitSinCos(). setRotateAbout(X|Y|Z)AxisSinCos() are added for right angle rotations. This makes it easy to switch between different gfx::Transform backends for performance evaluation and migration. Bug: 1167153 Change-Id: If31d7f9bf6fb86c779f853ed41c67d0b3c533e78 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3532620 Reviewed-by: danakj <danakj@chromium.org> Owners-Override: danakj <danakj@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/main@{#985625}
- Loading branch information
1 parent
40b87fb
commit 22ebcff
Showing
6 changed files
with
172 additions
and
200 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
Oops, something went wrong.