Skip to content
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

[Impeller] Pixel align subpass textures. #52973

Merged
merged 2 commits into from
May 22, 2024

Conversation

bdero
Copy link
Member

@bdero bdero commented May 21, 2024

Resolves flutter/flutter#146967

I added a detailed comment inline explaining why we need this. The visual issues in the reported issue were due to nearest sampling while straddling a half pixel offset.

Before:
image

After:
image

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@bdero bdero self-assigned this May 21, 2024
@jonahwilliams
Copy link
Member

See also: flutter/flutter#145180

The round out caused flutter/flutter#144213 . But maybe we should have fixed that bug elsewhere?

Copy link
Member

@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

@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 #52973 at sha 9d93b35

@bdero
Copy link
Member Author

bdero commented May 21, 2024

Hmm, there is a slightly different way I could fix this that wouldn't make that issue worse. Trying it out now.

@bdero
Copy link
Member Author

bdero commented May 22, 2024

Pushed the change. We can just round the texture position instead of modifying the coverage. This will keep the texture edges the same and avoid resurfacing flutter/flutter#144213.

@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

Changes reported for pull request #52973 at sha 0d50813

@bdero bdero added the autosubmit Merge PR when tree becomes green via auto submit App label May 22, 2024
@bdero
Copy link
Member Author

bdero commented May 22, 2024

Golden changes are looking as expected.

@auto-submit auto-submit bot merged commit 106e719 into flutter:main May 22, 2024
29 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 22, 2024
@bdero bdero changed the title [Impeller] Round out subpass coverage. [Impeller] Pixel align subpass textures. May 22, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 22, 2024
…148819)

flutter/engine@c89defa...b6971cd

2024-05-22 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from HHwlAJN5imwf3yX4i... to gWBn6yPljFeQvPSYz... (flutter/engine#52975)
2024-05-22 bdero@google.com [Impeller] Round out subpass coverage. (flutter/engine#52973)
2024-05-22 skia-flutter-autoroll@skia.org Roll Skia from 968e971e438e to 78069713e02a (1 revision) (flutter/engine#52974)
2024-05-21 skia-flutter-autoroll@skia.org Roll Dart SDK from f0ac30bbc63e to fca7dd796e81 (1 revision) (flutter/engine#52972)
2024-05-21 ditman@gmail.com [web] Adds Noto Serif Tibetan fallback font. (flutter/engine#52971)
2024-05-21 magder@google.com Update file permissions for FlutterMacOS.framework bundle (flutter/engine#52961)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from HHwlAJN5imwf to gWBn6yPljFeQ

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 jonahwilliams@google.com,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://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
victorsanni pushed a commit to victorsanni/flutter that referenced this pull request May 31, 2024
…lutter#148819)

flutter/engine@c89defa...b6971cd

2024-05-22 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from HHwlAJN5imwf3yX4i... to gWBn6yPljFeQvPSYz... (flutter/engine#52975)
2024-05-22 bdero@google.com [Impeller] Round out subpass coverage. (flutter/engine#52973)
2024-05-22 skia-flutter-autoroll@skia.org Roll Skia from 968e971e438e to 78069713e02a (1 revision) (flutter/engine#52974)
2024-05-21 skia-flutter-autoroll@skia.org Roll Dart SDK from f0ac30bbc63e to fca7dd796e81 (1 revision) (flutter/engine#52972)
2024-05-21 ditman@gmail.com [web] Adds Noto Serif Tibetan fallback font. (flutter/engine#52971)
2024-05-21 magder@google.com Update file permissions for FlutterMacOS.framework bundle (flutter/engine#52961)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from HHwlAJN5imwf to gWBn6yPljFeQ

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 jonahwilliams@google.com,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://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
@jonahwilliams jonahwilliams added the cp: stable cherry pick to the stable release candidate branch label Jun 5, 2024
@flutteractionsbot
Copy link

Failed to create CP due to merge conflicts.
You will need to create the PR manually. See the cherrypick wiki for more info.

jonahwilliams pushed a commit to jonahwilliams/engine that referenced this pull request Jun 5, 2024
Resolves flutter/flutter#146967

I added a detailed comment inline explaining why we need this. The visual issues in the reported issue were due to nearest sampling while straddling a half pixel offset.

Before:
![image](https://github.com/flutter/engine/assets/919017/ccd89a87-4643-4e4d-9e24-56f28f317e2f)

After:
<img width="964" alt="image" src="https://github.com/flutter/engine/assets/919017/0be88453-1014-443b-bc80-6df459adb075">
auto-submit bot pushed a commit that referenced this pull request Jul 1, 2024
Resolves flutter/flutter#146967

I added a detailed comment inline explaining why we need this. The visual issues in the reported issue were due to nearest sampling while straddling a half pixel offset.

Before:
![image](https://github.com/flutter/engine/assets/919017/ccd89a87-4643-4e4d-9e24-56f28f317e2f)

After:
<img width="964" alt="image" src="https://github.com/flutter/engine/assets/919017/0be88453-1014-443b-bc80-6df459adb075">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App cp: stable cherry pick to the stable release candidate branch e: impeller will affect goldens
Projects
None yet
Development

Successfully merging this pull request may close these issues.

drawCircle with saveLayer on Canvas does not draw smoothly
3 participants