-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix bounds when painting style is stroke width for image shaders #42052
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
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
Golden file changes are available for triage from new commit, Click here to view. |
Need to figure out what's changing in the goldens... |
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.
I'd recommend adding a golden that draws a stroke with TiledTextureContents
as the color source. There are a bunch of combinations not covered by goldens yet.
I updated the goldens to draw both a stroke and a fill over the same area and make sure they match. I'm confused though about why some of them are changing. I'm going to be out today but will try to look tomorrow. |
Ok, verified locally the golden updates are because I'm not placing the stroke exactly on top of the fill in some cases. Rather than try to figure that out I'm going to approve them. This would still catch regressions. |
…127043) flutter/engine@47fd496...0ae3719 2023-05-17 dnfield@google.com Report displays for macOS (flutter/engine#41998) 2023-05-17 dnfield@google.com Fix bounds when painting style is stroke width for image shaders (flutter/engine#42052) 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 rmistry@google.com,zra@google.com 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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…tter#42052) Fixes flutter/flutter#126739 When we're sampling from the texture, we need to sample from its origin regardless of how much offset the stroke width gives to the path.
…age shaders (#42052) (#42129) Fixes flutter/flutter#126739 When we're sampling from the texture, we need to sample from its origin regardless of how much offset the stroke width gives to the path.
…lutter#127043) flutter/engine@47fd496...0ae3719 2023-05-17 dnfield@google.com Report displays for macOS (flutter/engine#41998) 2023-05-17 dnfield@google.com Fix bounds when painting style is stroke width for image shaders (flutter/engine#42052) 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 rmistry@google.com,zra@google.com 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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Fixes flutter/flutter#126739
When we're sampling from the texture, we need to sample from its origin regardless of how much offset the stroke width gives to the path.