-
Notifications
You must be signed in to change notification settings - Fork 6k
[web] move some vector functions into vector_math.dart #32782
[web] move some vector functions into vector_math.dart #32782
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
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.
I would exempt this of tests, it is just moving already existing code around. These are utility functions that are tested indirectly through other code that handles vector transformations elsewhere.
|
|
||
| import 'package:ui/ui.dart' as ui; | ||
|
|
||
| import '../../engine.dart' show kProfileApplyFrame, kProfilePrerollFrame, toMatrix32; |
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.
Didn't we have a lint for unused imports?
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.
We do, but I think the lint doesn't trigger when two libraries vend the same member.
|
Actually, it may be worth testing. These utilities are only covered indirectly. I'll add tests. |
e8d2732 to
22f3c63
Compare
|
Tests were added. |
* 299b25c [web] move some vector functions into vector_math.dart (flutter/engine#32782) * 81a9213 Roll Dart SDK from 889e4039c8d6 to 1db3abc0ac54 (1 revision) (flutter/engine#32792) * 99222ba Roll Fuchsia Linux SDK from sncTyrbDY... to wkRK4A6QT... (flutter/engine#32793) * 584393a Roll Skia from 932801c29efb to 2cf8e9b602ec (2 revisions) (flutter/engine#32794) * 47af169 Roll ANGLE to acdec48addfdff315efff293be0d5e2e37e8e560 (flutter/engine#32785)
* 299b25c [web] move some vector functions into vector_math.dart (flutter/engine#32782) * 81a9213 Roll Dart SDK from 889e4039c8d6 to 1db3abc0ac54 (1 revision) (flutter/engine#32792) * 99222ba Roll Fuchsia Linux SDK from sncTyrbDY... to wkRK4A6QT... (flutter/engine#32793) * 584393a Roll Skia from 932801c29efb to 2cf8e9b602ec (2 revisions) (flutter/engine#32794) * 47af169 Roll ANGLE to acdec48addfdff315efff293be0d5e2e37e8e560 (flutter/engine#32785)
Move
toMatrix32and the (not so)FastMatrix32vector math utilities into thevector_math.dartlibrary, where they belong.