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 Sep 21, 2022

It's unfortunately still hard to test properly outside of the playground because it requires uploading images + graphics context to be running in the non-passthrough path.

Before

Screen.Recording.2022-09-21.at.4.54.42.PM.mov

After

Screen.Recording.2022-09-21.at.4.53.45.PM.mov

@bdero bdero self-assigned this Sep 21, 2022
@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 Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on 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 changed the title [Impeller] Don't do texture passthrough when opacity is applied [Impeller] Don't do texture passthrough when opacity needs to be applied Sep 21, 2022
// rects.
if (is_rect_ && source_rect_ == Rect::MakeSize(texture_->GetSize())) {
if (is_rect_ && source_rect_ == Rect::MakeSize(texture_->GetSize()) &&
opacity_ == 1) {
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps kEhCloseEnough?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@bdero bdero force-pushed the bdero/alpha-passthrough-fix branch from f6ae665 to 7c92603 Compare September 22, 2022 07:39
@bdero bdero added autosubmit Merge PR when tree becomes green via auto submit App and removed autosubmit Merge PR when tree becomes green via auto submit App labels Sep 22, 2022
@auto-submit auto-submit bot merged commit ac6cb9f into flutter:main Sep 22, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 22, 2022
Oleh-Sv pushed a commit to Oleh-Sv/engine that referenced this pull request Sep 28, 2022
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 needs tests

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants