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

[Android] post image task to main handler. #52025

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

jonahwilliams
Copy link
Member

@jonahwilliams jonahwilliams commented Apr 10, 2024

Fixes flutter/flutter#146465

This callback needs to run on the platform main thread. Since it was just constructing a handler, that would callback from whatever thread it was created from. Update this to specifically create a main thread handler.

@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.

Copy link
Contributor

@matanlurey matanlurey left a comment

Choose a reason for hiding this comment

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

test-exempt:
image

(The test is in another repo)

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 10, 2024
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Apr 10, 2024
Copy link
Contributor

auto-submit bot commented Apr 10, 2024

auto label is removed for flutter/engine/52025, due to - The status or check suite Linux linux_unopt has failed. Please fix the issues identified (or deflake) before re-applying this label.

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 10, 2024
@auto-submit auto-submit bot merged commit d7b7c5b into flutter:main Apr 10, 2024
29 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 10, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 10, 2024
…146605)

flutter/engine@beee02b...91ba235

2024-04-10 [email protected] Adds iOS builds to local_engine.json (flutter/engine#52027)
2024-04-10 [email protected] Roll Skia from df6d08abb447 to 91e0c0f4bf41 (3 revisions) (flutter/engine#52026)
2024-04-10 [email protected] [Android] post image task to main handler. (flutter/engine#52025)
2024-04-10 [email protected] [et] Adds --lto flag to build. Plumbs verbose flag differently. (flutter/engine#52021)

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],[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://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: beta cherry pick to the beta release candidate branch label Apr 16, 2024
flutteractionsbot pushed a commit to flutteractionsbot/engine that referenced this pull request Apr 16, 2024
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
…lutter#146605)

flutter/engine@beee02b...91ba235

2024-04-10 [email protected] Adds iOS builds to local_engine.json (flutter/engine#52027)
2024-04-10 [email protected] Roll Skia from df6d08abb447 to 91e0c0f4bf41 (3 revisions) (flutter/engine#52026)
2024-04-10 [email protected] [Android] post image task to main handler. (flutter/engine#52025)
2024-04-10 [email protected] [et] Adds --lto flag to build. Plumbs verbose flag differently. (flutter/engine#52021)

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],[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://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
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 cp: beta cherry pick to the beta release candidate branch platform-android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImageReaderSurfaceProducer interacts poorly with (some) plugins due to ensureRunningOnMainThread
2 participants