Skip to content

Add Image.decodeImageFromPixelsSync #178488

Closed

Description

@gaaclarke

Image.decodeImageFromPixels exists already, this is a proposal to allow people to do it synchronously. This matches the behavior of Picture.toImageSync but instead of using Picture, people can use raw pixels so they can generate high bitrate textures like r32float.

Use cases:

  • generate an SDF and attach it to a fragment shader all in the same frame

Activity

  1. added
    e: impellerImpeller rendering backend issues and features requests
    on Nov 13, 2025
  2. gaaclarke commented on Nov 15, 2025

    @gaaclarke
    MemberAuthor

    I think this technically satisfies #37180, it's a bit hard to tell since that issue is a bit meandering.

  3. chinmaygarde commented on Nov 17, 2025

    @chinmaygarde
    Contributor

    This just means that the handle to a texture will whose contents will be initialized from the pixels will be available synchronously right? This is as opposed to just waiting for the texture upload to be done?

  4. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 17, 2025
  5. gaaclarke commented on Nov 17, 2025

    @gaaclarke
    MemberAuthor

    This just means that the handle to a texture will whose contents will be initialized from the pixels will be available synchronously right? This is as opposed to just waiting for the texture upload to be done?

    Yea, it's for people that want to upload pixel data and guarantee that it's used that frame instead of waiting for the next frame. Implementation-wise it will probably work like toImageSync where it fires off something on the raster thread and you get a handle to the task.

  6. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 17, 2025
  7. added
    P2Important issues not at the top of the work list
    on Nov 24, 2025
  8. self-assigned this
    on Dec 5, 2025
  9. github-actions commented on Dec 26, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  10. locked as resolved and limited conversation to collaborators on Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requeststeam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions