Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@gaaclarke
Copy link
Member

@gaaclarke gaaclarke commented Oct 8, 2024

fixes flutter/flutter#155930

This starts taking into account the translation of the entity that is snapshotted when performing the gaussian blur. I'm uncertain under what conditions, but sometimes the snapshot logic would need this offset. The linked issue and added tests demonstrate those cases.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@gaaclarke gaaclarke changed the title Offset blur fixes mask blurs on stoked gradient geometry Oct 8, 2024
@gaaclarke gaaclarke marked this pull request as ready for review October 8, 2024 18:36
@gaaclarke
Copy link
Member Author

Mostly look good. This one looks particularly wrong. But based on the name there should be some clipping somewhere and the reference image doesn't seem to have any.

Screenshot 2024-10-08 at 12 56 48 PM

@gaaclarke
Copy link
Member Author

@flutter-dashboard
Copy link

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.

Changes reported for pull request #55717 at sha fba6c3b

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

can you update the bug description with what this changes?

@gaaclarke
Copy link
Member Author

can you update the bug description with what this changes?

You mean the PR's description? Done.

Jonah did you see that the lines for the test don't render on opengl? That's kind of surprising. I'm not sure if we have that captured somewhere in an issue.

@jonahwilliams
Copy link
Contributor

Jonah did you see that the lines for the test don't render on opengl? That's kind of surprising. I'm not sure if we have that captured somewhere in an issue.

I did not, which goldens are those?

@gaaclarke
Copy link
Member Author

I did not, which goldens are those?

There is a white crosshair in the middle of the shape in vulkan and metal.

Screenshot 2024-10-08 at 3 11 58 PM

@jonahwilliams
Copy link
Contributor

hmm, don't know what that would be. File a bug?

@gaaclarke
Copy link
Member Author

hmm, don't know what that would be. File a bug?

flutter/flutter#156438

@gaaclarke gaaclarke merged commit db0c0b7 into flutter:main Oct 8, 2024
30 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 9, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Oct 9, 2024
…156443)

flutter/engine@0e7344a...db0c0b7

2024-10-08 [email protected] fixes mask blurs on stoked gradient geometry (flutter/engine#55717)
2024-10-08 [email protected] [Impeller] Do not scale the miter limit applied to stroked text (flutter/engine#55745)
2024-10-08 [email protected] Added support to set primitive type (flutter/engine#55514)
2024-10-08 [email protected] Roll Skia from 8a2fe88d31e3 to 701b6e4b4bc4 (1 revision) (flutter/engine#55752)

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] 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
nick9822 pushed a commit to nick9822/flutter that referenced this pull request Dec 18, 2024
fixes flutter#155930

This starts taking into account the translation of the entity that is
snapshotted when performing the gaussian blur. I'm uncertain under what
conditions, but sometimes the snapshot logic would need this offset. The
linked issue and added tests demonstrate those cases.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide] and the [C++,
Objective-C, Java style guides].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I added new tests to check the change I am making or feature I am
adding, or the PR is [test-exempt]. See [testing the engine] for
instructions on writing and running engine tests.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I signed the [CLA].
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
[Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
[test-exempt]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[C++, Objective-C, Java style guides]:
https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
[testing the engine]:
https://github.com/flutter/flutter/wiki/Testing-the-engine
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
[Discord]: https://github.com/flutter/flutter/wiki/Chat
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CustomPainter with LinearGradient shader and blur MaskFilter show clipping error with 3.24.3

2 participants