-
Notifications
You must be signed in to change notification settings - Fork 6k
[canvaskit] Add dilate and erode imagefilters #48553
[canvaskit] Add dilate and erode imagefilters #48553
Conversation
| radiusY, | ||
| null, | ||
| ); | ||
| _ref = UniqueRef<SkImageFilter>(this, skImageFilter, 'ImageFilter.dilate'); |
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.
Who is responsible for calling _ref.dispose()? Or do we leak these and let GC handle the clean-up?
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.
We let GC handle it. Like ui.Paint, ui.ImageFilter can be created by the user and doesn't have a dispose method. There are no places in the engine where we create a temporary ImageFilter to make use of explicit disposal.
| radiusY, | ||
| null, | ||
| ); | ||
| _ref = UniqueRef<SkImageFilter>(this, skImageFilter, 'ImageFilter.erode'); |
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.
Same question about disposal 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.
Same answer.
|
Thanks! PTAL |
yjbanov
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.
|
This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold. |
|
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. |
…148919) flutter/engine@8b094fb...b8b8245 2024-05-22 [email protected] Roll Skia from 380ae98608de to 0ee149894a8d (5 revisions) (flutter/engine#52989) 2024-05-22 [email protected] Roll Skia from 396c66076ab1 to 380ae98608de (4 revisions) (flutter/engine#52983) 2024-05-22 [email protected] Reduce rebuild times when invoking 'et run' (flutter/engine#52883) 2024-05-22 [email protected] [canvaskit] Add dilate and erode imagefilters (flutter/engine#48553) 2024-05-22 [email protected] Roll Skia from 93ed643df6d1 to 396c66076ab1 (3 revisions) (flutter/engine#52981) 2024-05-22 [email protected] Fix another instance of platform view breakage on Android 14 (flutter/engine#52980) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#148919) flutter/engine@8b094fb...b8b8245 2024-05-22 [email protected] Roll Skia from 380ae98608de to 0ee149894a8d (5 revisions) (flutter/engine#52989) 2024-05-22 [email protected] Roll Skia from 396c66076ab1 to 380ae98608de (4 revisions) (flutter/engine#52983) 2024-05-22 [email protected] Reduce rebuild times when invoking 'et run' (flutter/engine#52883) 2024-05-22 [email protected] [canvaskit] Add dilate and erode imagefilters (flutter/engine#48553) 2024-05-22 [email protected] Roll Skia from 93ed643df6d1 to 396c66076ab1 (3 revisions) (flutter/engine#52981) 2024-05-22 [email protected] Fix another instance of platform view breakage on Android 14 (flutter/engine#52980) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Adds
dilateanderodeImageFilters.Fixes flutter/flutter#101085
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.