-
Notifications
You must be signed in to change notification settings - Fork 6k
Remove Thread merging logic in DiscardLayerTreeOnResize test #30803
Remove Thread merging logic in DiscardLayerTreeOnResize test #30803
Conversation
|
Hi, @cyanglaz , It seems that the test |
|
@ColdPaleLight Is |
|
|
@ColdPaleLight done, please review it to see if the updated test still makes sense. |
|
I’m sorry, but I think updated test engine/shell/common/rasterizer.cc Lines 206 to 218 in 825c409
I tried removing the Thread merging logic at DiscardResubmittedLayerTreeOnResize today, but I didn't succeed. |
|
@ColdPaleLight Could you elaborate what needs to be updated for test. It seems to me the current version of the test in this PR makes sure the frame is dropped when the original_size is used, which was the same as the previous version, just without thread merging. |
Sorry, I didn't express clearly. This test is to ensure that the engine/shell/common/rasterizer.cc Lines 214 to 215 in 825c409
So if someone accidentally makes the following change, the test will fail. You can make the following changes and see if the new version of the test fails, thank you. --- a/shell/common/rasterizer.cc
+++ b/shell/common/rasterizer.cc
@@ -220,8 +220,7 @@ RasterStatus Rasterizer::Draw(
resubmit_recorder = std::move(resubmit_recorder),
discard_callback = std::move(discard_callback)]() mutable {
if (weak_this) {
- weak_this->Draw(std::move(resubmit_recorder), pipeline,
- std::move(discard_callback));
+ weak_this->Draw(std::move(resubmit_recorder), pipeline);
}
}));
break; |
|
@ColdPaleLight Ah I see. I think in the resubmit case, thread merging is required ATM because The test looks fine and we didn't have any flake report so I'd like to keep it there for now. If in the future, we have a case where we need to resubmit the tree in a embedder that doesn't require thread merging, then it makes sense to create a new similar test but without thread merging. Does it make sense? I'll remove the change in |
Yeah, It sounds good to me :-) |
8cf0bc9 to
c051107
Compare
ColdPaleLight
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!
|
@chinmaygarde Friendly ping :) |
The thread merging logic had some race condition in
DiscardLayerTreeOnResizetest with caused some flakiness. I couldn't reproduce the flakiness with more than 10k runs locally so I decided to remove the thread merging logic in the test. The thread merging logic was unnecessary for the test anyway.Fixes flutter/flutter#95751
Also remove unnecessary thread merging logic in
DiscardResubmittedLayerTreeOnResizetest.Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.