New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Test-only) Add tests for new ImageFilter.dilate/ImageFilter.erode in flutter engine
#101036
Conversation
|
This should fail until flutter/engine#32334 is merged and flutter/flutter repo uses the latest flutter/engine. |
ImageFilter.dilate/ImageFilter.erode in flutter engineImageFilter.dilate/ImageFilter.erode in flutter engine
ImageFilter.dilate/ImageFilter.erode in flutter engineImageFilter.dilate/ImageFilter.erode in flutter engine
|
We know dilate/erode is not implemented for the web platform, just like the compose filter. So what should I do (skip tests when in web?)? |
|
/cc @dnfield |
|
Skip these on web with a reference to the bug filed to implement them for web. |
|
Thanks, I will do that. |
|
@fzyzcjy Can you update the tests per the suggestion above to make the checks happy? |
|
Sure. I forgot it |
|
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
@fzyzcjy Can you take a look at the golden images linked in the previous comment to confirm that that's what you expected them to look like? One of the images looks empty, which seems odd... |
|
@goderbauer I guess it is right, just b/c it erodes too much. I have updated the test so it will be less strange. |
|
Golden file changes are available for triage from new commit, Click here to view. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
The gold looks better. (Notice it has very very thin lines) |
| child: ImageFiltered( | ||
| // Do not erode too much, otherwise we will see nothing left. | ||
| imageFilter: ImageFilter.erode(radiusX: 1.0, radiusY: 1.0), | ||
| child: const Placeholder(), |
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.
The place holder by default draws a box with diagonals with a stroke width of 2 and doesn't survive the erode process. Try increasing the stroke width on both to a reasonable size so it doesn't erode completely for the golden image.
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.
Actually, the dilate filter shows up fine in its golden, it's definitely more than 2 pixels wide, but the erode filter creates a blank image.
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.
stroke width modified.
I still don't see anything rendered in the erode test even if I click on it to see it full size. Am I clicking on the wrong link? Actually, it looks like I was reviewing the goldens from before I requested a larger stroke width. Maybe they haven't been updated yet? |
I guess the CI is even not executed after modifying strokewidth... |
|
I guess the failure (and seems skipped executing all tests related to golden) is not caused by me. So maybe need to wait |
I mentioned it on the infra Discord chat to see if someone can poke it. |
|
I would just LGTM to let it merge, but I'm worried it may merge with bad goldens and cause problems down the line. |
|
Take your time. Since this is a test-only PR I am not that urgent :) |
|
It looks like you need to rebase in order to get the ci.yaml to gel with the latest CI recipes and then hopefully final goldens will be generated. |
|
Golden file changes are available for triage from new commit, Click here to view. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
Now seems better |
…lter.erode` in flutter engine (flutter/flutter#101036)

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.
Please see #100830
List which issues are fixed by this PR. You must list at least one issue.
#100830
Related: flutter/engine#32334
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.