-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix exactCullRect computation #24651
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. 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. |
| } | ||
|
|
||
| @override | ||
| Matrix4 get localTransformInverse => |
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.
Should this getter be renamed?
| Matrix4? get localTransform { | ||
| _localTransform ??= Matrix4.fromFloat32List(matrix4); | ||
| return _localTransform; |
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.
You could also use late final here:
late final localTransform = Matrix4.fromFloat32List(matrix4);
| test( | ||
| 'skips painting picture when picture fully clipped out with transform and offset', () async { | ||
| final Picture picture = _drawPicture(); | ||
| // Picture should not be clipped out since transform will offset it to 500,500 |
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.
copy-pasta?
|
Split this PR up. Part1 went into #25080 |
Fixed disappearing surfaces due to non-homogenous matrix breaking cull rect computation.
flutter/flutter#59392
Pre-launch Checklist
writing and running engine tests.
///).