-
Notifications
You must be signed in to change notification settings - Fork 6k
Skip LayerTree::Preroll LayerTree::Paint & Swapbuffer when frame_damage is empty #32351
Skip LayerTree::Preroll LayerTree::Paint & Swapbuffer when frame_damage is empty #32351
Conversation
feat: Skip when frame_damage is empty
add kDiscarded status add rasterizer.cc
add TRACE_EVENT for ComputeClipRect
|
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. |
format the code
format code
|
From PR review triage: This PR will need tests. cc @knopp |
|
I double checked that we don't end up calling CleanupAfterFrame here which would empty the raster cache, so that shouldn't be an issue. I don't see any problems, but I would rather @iskakaushik takes a look at this to double-check. |
Add test drawWithFrameDamageIsEmpty & drawWithFrameDamageIsNotEmpty
iskakaushik
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. Nice fix!
Hi @zanderso |
Hi @flar |
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.
echo the LGTM from @iskakaushik
…ame_damage is empty (flutter/engine#32351)
…ame_damage is empty (flutter#32351)" This reverts commit 5b81baa.
…ame_damage is empty (flutter#32351)" This reverts commit 5b81baa.
See flutter/flutter#101097
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.