Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Impeller] adjust coverage origin when rounding out SaveLayer bounds.#161838

Merged
auto-submit[bot] merged 7 commits intoflutter:masterfrom
jonahwilliams:adjust_bounds
Jan 23, 2025
Merged

[Impeller] adjust coverage origin when rounding out SaveLayer bounds.#161838
auto-submit[bot] merged 7 commits intoflutter:masterfrom
jonahwilliams:adjust_bounds

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliamsjonahwilliams commentedJan 17, 2025
edited
Loading

Fixes#161374

When we round out the texture size for a saveLayer, also round out the coverage so that the drawing origin is correct. Otherwise we may actually cut off the top left edge of rendering.

@github-actionsgithub-actionsbot added engineflutter/engine related. See also e: labels. e: impellerImpeller rendering backend issues and features requests labelsJan 17, 2025
@jonahwilliamsjonahwilliams marked this pull request as ready for reviewJanuary 22, 2025 17:59
@flutter-dashboard
Copy link

Golden file changes have been found for this pull request. Clickhere 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, visitWriting a golden file test forpackage:flutter.

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

Changes reported for pull request#161838 at sha3428685

@flutter-dashboardflutter-dashboardbot added the will affect goldensChanges to golden files labelJan 22, 2025
@jonahwilliams
Copy link
ContributorAuthor

Leaving up the goldens for comparison. If you look at the before/after you can see the top left edge appearing where it previously was cut off.

@flutter-dashboard
Copy link

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

For more guidance, visitWriting a golden file test forpackage:flutter.

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

Changes reported for pull request#161838 at sha53fd56f

@gaaclarke
Copy link
Member

Leaving up the goldens for comparison. If you look at the before/after you can see the top left edge appearing where it previously was cut off.

I looked through the goldens and didn't notice anything problematic. The space between the rects inmaterial.raw_chip.disabled.delete_button looks slightly better in the before, but looking at other tests that seems to be a fluke and not directly related to this change, as far as I can tell.

Copy link
Member

@gaaclarkegaaclarke left a comment

Choose a reason for hiding this comment

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

Test and code looks good to me. I just have one question about why it is happening in one branch of the code.

)));
save_layer_state_.push_back(SaveLayerState{paint_copy, subpass_coverage});
save_layer_state_.push_back(SaveLayerState{
paint_copy, subpass_coverage.Shift(-coverage_origin_adjustment)});
Copy link
Member

Choose a reason for hiding this comment

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

no action required: I double checked this is right:

top_left = 1.9adjustment = 1.9 - 1.0 = 0.9shift(-0.9)

bool did_round_out = false;
Point coverage_origin_adjustment = Point{0, 0};
if (paint.image_filter) {
subpass_size = ISize(subpass_coverage.GetSize());
Copy link
Member

Choose a reason for hiding this comment

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

How come this isn't an issue?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I don't fully understand how the coverage computation for image filters are working today. most are pretty destructuve to the exact pixels (and that no one has reported an issue). Given that, I think we should leave well enough alone for now.

gaaclarke reacted with thumbs up emoji
Co-authored-by: gaaclarke <30870216+gaaclarke@users.noreply.github.com>
Copy link
Member

@gaaclarkegaaclarke left a comment

Choose a reason for hiding this comment

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

lgtm

@jonahwilliamsjonahwilliams added the autosubmitMerge PR when tree becomes green via auto submit App labelJan 23, 2025
@auto-submitauto-submitbot added this pull request to themerge queueJan 23, 2025
Merged via the queue intoflutter:master with commit948e31dJan 23, 2025
173 of 174 checks passed
@flutter-dashboardflutter-dashboardbot removed the autosubmitMerge PR when tree becomes green via auto submit App labelJan 23, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull requestJan 23, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull requestJan 23, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull requestJan 23, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull requestJan 23, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull requestJan 23, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull requestJan 23, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull requestJan 23, 2025
auto-submitbot pushed a commit to flutter/packages that referenced this pull requestJan 23, 2025
Manual roll requested by tarrinneal@google.comflutter/flutter@b2f515f...c1561a42025-01-23 matanlurey@users.noreply.github.com Add `windows_host_engine_test` to presubmit, remove lint exceptions. (flutter/flutter#162032)2025-01-23 matanlurey@users.noreply.github.com Shift `mac_clang_tidy` to a Linux orchestrator. (flutter/flutter#162042)2025-01-23 jonahwilliams@google.com [Impeller] check both linear sampling props for AHBs. (flutter/flutter#162043)2025-01-23 jason-simmons@users.noreply.github.com [Impeller] Implement inherited opacity for ColorFilterContents (flutter/flutter#161834)2025-01-23 robert.ancell@canonical.com Keyboard tidy ups (flutter/flutter#162054)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in tests of `engine/src/flutter` (flutter/flutter#161115)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in `flutter/test` (flutter/flutter#161127)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in `flutter_test` (flutter/flutter#161131)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in `dev/` (flutter/flutter#161112)2025-01-23 robert.ancell@canonical.com Replace hacky code creating fake devices (flutter/flutter#162056)2025-01-23 dacoharkes@google.com [native assets] Roll dependencies (flutter/flutter#162068)2025-01-23 dacoharkes@google.com [native assets] Roll dependencies (flutter/flutter#162017)2025-01-23 bruno.leroux@gmail.com Fix DropdownButtonFormField clips text when large text scale is used (flutter/flutter#159975)2025-01-23 matanlurey@users.noreply.github.com Add a better error message when `flutter drive --target` is used incorrectly. (flutter/flutter#162023)2025-01-23 jason-simmons@users.noreply.github.com Revert "Move the analyzer_benchmark to Mac arm64 devicelab bots" (flutter/flutter#161822)2025-01-23 jonahwilliams@google.com [Impeller] adjust coverage origin when rounding out SaveLayer bounds. (flutter/flutter#161838)2025-01-23 34871572+gmackall@users.noreply.github.com Add a README with instructions for editing and running tests for the FGP (flutter/flutter#161830)2025-01-23 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[Impeller] Migrate unit tests off of Skia geometry classes (#161855)" (flutter/flutter#162046)If this roll has caused a breakage, revert this CL and stop the rollerusing the controls here:https://autoroll.skia.org/r/flutter-packagesPlease CC stuartmorgan@google.com,tarrinneal@google.com on the revert to ensure that a humanis aware of the problem.To file a bug in Packages:https://github.com/flutter/flutter/issues/new/chooseTo report a problem with the AutoRoller itself, please file a bug:https://issues.skia.org/issues/new?component=1389291&template=1850622Documentation for the AutoRoller is here:https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Wasmund1 pushed a commit to Wasmund1/flutter that referenced this pull requestJan 24, 2025
…flutter#161838)Fixesflutter#161374When we round out the texture size for a saveLayer, also round out thecoverage so that the drawing origin is correct. Otherwise we mayactually cut off the top left edge of rendering.---------Co-authored-by: gaaclarke <30870216+gaaclarke@users.noreply.github.com>
jonahwilliams pushed a commit to jonahwilliams/flutter that referenced this pull requestJan 24, 2025
…flutter#161838)Fixesflutter#161374When we round out the texture size for a saveLayer, also round out thecoverage so that the drawing origin is correct. Otherwise we mayactually cut off the top left edge of rendering.---------Co-authored-by: gaaclarke <30870216+gaaclarke@users.noreply.github.com>
auto-submitbot pushed a commit that referenced this pull requestJan 29, 2025
…nds (#161838) (#162189)Fixes#161374When we round out the texture size for a saveLayer, also round out the coverage so that the drawing origin is correct. Otherwise we may actually cut off the top left edge of rendering.
@reidbakerreidbaker mentioned this pull requestJan 30, 2025
9 tasks
@reidbakerreidbaker mentioned this pull requestApr 4, 2025
9 tasks
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull requestMay 20, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull requestMay 20, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull requestMay 21, 2025
androidseb pushed a commit to androidseb/packages that referenced this pull requestJun 8, 2025
)Manual roll requested by tarrinneal@google.comflutter/flutter@b2f515f...c1561a42025-01-23 matanlurey@users.noreply.github.com Add `windows_host_engine_test` to presubmit, remove lint exceptions. (flutter/flutter#162032)2025-01-23 matanlurey@users.noreply.github.com Shift `mac_clang_tidy` to a Linux orchestrator. (flutter/flutter#162042)2025-01-23 jonahwilliams@google.com [Impeller] check both linear sampling props for AHBs. (flutter/flutter#162043)2025-01-23 jason-simmons@users.noreply.github.com [Impeller] Implement inherited opacity for ColorFilterContents (flutter/flutter#161834)2025-01-23 robert.ancell@canonical.com Keyboard tidy ups (flutter/flutter#162054)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in tests of `engine/src/flutter` (flutter/flutter#161115)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in `flutter/test` (flutter/flutter#161127)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in `flutter_test` (flutter/flutter#161131)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in `dev/` (flutter/flutter#161112)2025-01-23 robert.ancell@canonical.com Replace hacky code creating fake devices (flutter/flutter#162056)2025-01-23 dacoharkes@google.com [native assets] Roll dependencies (flutter/flutter#162068)2025-01-23 dacoharkes@google.com [native assets] Roll dependencies (flutter/flutter#162017)2025-01-23 bruno.leroux@gmail.com Fix DropdownButtonFormField clips text when large text scale is used (flutter/flutter#159975)2025-01-23 matanlurey@users.noreply.github.com Add a better error message when `flutter drive --target` is used incorrectly. (flutter/flutter#162023)2025-01-23 jason-simmons@users.noreply.github.com Revert "Move the analyzer_benchmark to Mac arm64 devicelab bots" (flutter/flutter#161822)2025-01-23 jonahwilliams@google.com [Impeller] adjust coverage origin when rounding out SaveLayer bounds. (flutter/flutter#161838)2025-01-23 34871572+gmackall@users.noreply.github.com Add a README with instructions for editing and running tests for the FGP (flutter/flutter#161830)2025-01-23 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[Impeller] Migrate unit tests off of Skia geometry classes (#161855)" (flutter/flutter#162046)If this roll has caused a breakage, revert this CL and stop the rollerusing the controls here:https://autoroll.skia.org/r/flutter-packagesPlease CC stuartmorgan@google.com,tarrinneal@google.com on the revert to ensure that a humanis aware of the problem.To file a bug in Packages:https://github.com/flutter/flutter/issues/new/chooseTo report a problem with the AutoRoller itself, please file a bug:https://issues.skia.org/issues/new?component=1389291&template=1850622Documentation for the AutoRoller is here:https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
FMorschel pushed a commit to FMorschel/packages that referenced this pull requestJun 9, 2025
)Manual roll requested by tarrinneal@google.comflutter/flutter@b2f515f...c1561a42025-01-23 matanlurey@users.noreply.github.com Add `windows_host_engine_test` to presubmit, remove lint exceptions. (flutter/flutter#162032)2025-01-23 matanlurey@users.noreply.github.com Shift `mac_clang_tidy` to a Linux orchestrator. (flutter/flutter#162042)2025-01-23 jonahwilliams@google.com [Impeller] check both linear sampling props for AHBs. (flutter/flutter#162043)2025-01-23 jason-simmons@users.noreply.github.com [Impeller] Implement inherited opacity for ColorFilterContents (flutter/flutter#161834)2025-01-23 robert.ancell@canonical.com Keyboard tidy ups (flutter/flutter#162054)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in tests of `engine/src/flutter` (flutter/flutter#161115)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in `flutter/test` (flutter/flutter#161127)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in `flutter_test` (flutter/flutter#161131)2025-01-23 koji.wakamiya@gmail.com fix: Call codec.dispose in `dev/` (flutter/flutter#161112)2025-01-23 robert.ancell@canonical.com Replace hacky code creating fake devices (flutter/flutter#162056)2025-01-23 dacoharkes@google.com [native assets] Roll dependencies (flutter/flutter#162068)2025-01-23 dacoharkes@google.com [native assets] Roll dependencies (flutter/flutter#162017)2025-01-23 bruno.leroux@gmail.com Fix DropdownButtonFormField clips text when large text scale is used (flutter/flutter#159975)2025-01-23 matanlurey@users.noreply.github.com Add a better error message when `flutter drive --target` is used incorrectly. (flutter/flutter#162023)2025-01-23 jason-simmons@users.noreply.github.com Revert "Move the analyzer_benchmark to Mac arm64 devicelab bots" (flutter/flutter#161822)2025-01-23 jonahwilliams@google.com [Impeller] adjust coverage origin when rounding out SaveLayer bounds. (flutter/flutter#161838)2025-01-23 34871572+gmackall@users.noreply.github.com Add a README with instructions for editing and running tests for the FGP (flutter/flutter#161830)2025-01-23 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[Impeller] Migrate unit tests off of Skia geometry classes (#161855)" (flutter/flutter#162046)If this roll has caused a breakage, revert this CL and stop the rollerusing the controls here:https://autoroll.skia.org/r/flutter-packagesPlease CC stuartmorgan@google.com,tarrinneal@google.com on the revert to ensure that a humanis aware of the problem.To file a bug in Packages:https://github.com/flutter/flutter/issues/new/chooseTo report a problem with the AutoRoller itself, please file a bug:https://issues.skia.org/issues/new?component=1389291&template=1850622Documentation for the AutoRoller is here:https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gaaclarkegaaclarkegaaclarke approved these changes

Assignees

No one assigned

Labels

e: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.will affect goldensChanges to golden files

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Impeller] Fade Transition is not smooth

2 participants

@jonahwilliams@gaaclarke

Comments


[8]ページ先頭

©2009-2026 Movatter.jp