-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix perspective transform usage #598
Conversation
Just some thoughts about a test: PointerIconTest - is an example with pointer input in tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a test requires an extra look, please let me know
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/platform/SkiaLayer.skiko.kt
Show resolved
Hide resolved
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/platform/SkiaLayer.skiko.kt
Show resolved
Hide resolved
ea76bb6
to
1f63516
Compare
1f63516
to
5586d14
Compare
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/platform/SkiaLayer.skiko.kt
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
I already added tests that fails on main branch, but let's add extra one, sure |
BTW I guess it fixes JetBrains/compose-multiplatform#1718 too |
* Fix perspective transform usage * Add graphicsLayer settings page to mpp * Add inverseMatrix.map tests * Fix inverseMatrix for rotated layer # Conflicts: # compose/mpp/demo/src/commonMain/kotlin/androidx/compose/mpp/demo/App.kt
Proposed Changes
matrix[2, 2]
should not be zeroed, and perspective transform should be applied only in case of rotation.inverseMatrix
do opposite than applyingmatrix
Testing
Test: run code from JetBrains/compose-multiplatform#3230 (comment)
Unit tests: run tests from
SkiaLayerTest
Issues Fixed
Fixes JetBrains/compose-multiplatform#3230