-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix issue about checkerboardRasterCacheImages not working #34424
Fix issue about checkerboardRasterCacheImages not working #34424
Conversation
flar
left a comment
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.
LGTM
|
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. |
2d9fcc3 to
7b1dd66
Compare
|
@flar I tweaked the patch to simplify the logic and added a unit test. Would you mind taking a look again? Thanks. |
flar
left a comment
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.
Minor nit on indentation.
Also, do we have a test that confirms the behavior with raster cache checkerboarding off, but offscreen checkerboarding on? That would be nice, especially since we just got the 2 confused.
| .matrix = matrix_, | ||
| .logical_rect = *paint_bounds, | ||
| .flow_type = flow_type, | ||
| .checkerboard = context.checkerboard_offscreen_layers, |
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.
Can we indent these lines the proper amount (4 spaces here).
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.
Done
Yes, those tests are here |
I don't see them. All of those tests are outside of caching as far as I can tell...? With offscreen vs rastercache checkerboarding being 2 flags we should be checking that all 4 combinations of
I think we already test the last 3, but we have no test of layer caching a layer that has a child that also has a saveLayer that will be offscreen-checkerboarded, do we? |
I see, that test looks a little hard to implement though. Can we get this patch to land first? I filed an issue flutter/flutter#107676, we can address it in another PR. |
flar
left a comment
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.
LGTM
fix flutter/flutter#106946
Pre-launch Checklist
writing and running engine tests.
///).