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

Conversation

@bdero
Copy link
Member

@bdero bdero commented Jul 14, 2023

Resolves flutter/flutter#130411.

The remaining difference in appearance is due to flutter/flutter#127770 -- Impeller's blurs skew too large.

Before:

Screen Shot 2023-07-14 at 3 36 02 PM

After:

Screen Shot 2023-07-14 at 3 22 25 PM

@bdero bdero self-assigned this Jul 14, 2023

if (coverage_hint.has_value()) {
auto maybe_subpass_coverage =
subpass_coverage.Intersection(*coverage_hint);
Copy link
Member Author

@bdero bdero Jul 14, 2023

Choose a reason for hiding this comment

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

This was the bug: Grabbing the minimum size isn't enough -- we need to intersect the rectangles and then render the blended result to the minimal subpass texture. That means we need to offset both the geometry drawn to the subpass as well as the returned Entity's transform to account for this.

@bdero bdero force-pushed the bdero/fix-blend-coverage-hint branch from 76e9722 to 7b1f351 Compare July 14, 2023 23:07
@jason-simmons
Copy link
Member

Does this also apply to the use of subpass_size.Min(coverage_hint->size) in AdvancedBlend()?

@bdero
Copy link
Member Author

bdero commented Jul 15, 2023

Yeah, thanks. Pushed a fix for the advanced blend.

@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 #43708 at sha 5726992

@bdero bdero added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 17, 2023
@auto-submit auto-submit bot merged commit 105f6e3 into flutter:main Jul 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 17, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jul 17, 2023
…130741)

flutter/engine@aa3239c...ddbe23b

2023-07-17 [email protected] Roll Skia from b25cd035db06 to f0e1963324eb (2 revisions) (flutter/engine#43741)
2023-07-17 [email protected] Roll Skia from dc93f341ec38 to b25cd035db06 (2 revisions) (flutter/engine#43740)
2023-07-17 [email protected] [Impeller] Correct coverage hint usage in PipelineBlend (flutter/engine#43708)

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://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
LouiseHsu pushed a commit to LouiseHsu/flutter that referenced this pull request Jul 31, 2023
…lutter#130741)

flutter/engine@aa3239c...ddbe23b

2023-07-17 [email protected] Roll Skia from b25cd035db06 to f0e1963324eb (2 revisions) (flutter/engine#43741)
2023-07-17 [email protected] Roll Skia from dc93f341ec38 to b25cd035db06 (2 revisions) (flutter/engine#43740)
2023-07-17 [email protected] [Impeller] Correct coverage hint usage in PipelineBlend (flutter/engine#43708)

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://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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App e: impeller will affect goldens

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

[Impeller] Inner (Inset) Shadows not rendering correctly.

3 participants