Skip to content

Adds missing await on instantiateImageCodecFromBuffer#188910

Open
FMorschel wants to merge 1 commit into
flutter:masterfrom
FMorschel:patch-1
Open

Adds missing await on instantiateImageCodecFromBuffer#188910
FMorschel wants to merge 1 commit into
flutter:masterfrom
FMorschel:patch-1

Conversation

@FMorschel

@FMorschel FMorschel commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This is merely a work towards:

We are now making the new analyzer warning trigger on non-async cases too because that is probably what the code is meant to do.

I don't expect this change to break any tests. If it does, we caught an untracked error.

Pre-launch Checklist

@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

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. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actions github-actions Bot added engine flutter/engine related. See also e: labels. platform-web Web applications specifically team-web Owned by Web platform team labels Jul 2, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the instantiateImageCodecFromBuffer function in painting.dart to be asynchronous by adding the async modifier and awaiting the call to engine.renderer.instantiateImageCodec. There are no review comments, and I have no feedback to provide.

@stuartmorgan-g

Copy link
Copy Markdown
Contributor

test-exempt: unblocks future Dart roll

@AbdeMohlbi AbdeMohlbi added the CICD Run CI/CD label Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD engine flutter/engine related. See also e: labels. platform-web Web applications specifically team-web Owned by Web platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants