You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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?
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.
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.
Activity
gaaclarke commentedon Nov 15, 2025
I think this technically satisfies #37180, it's a bit hard to tell since that issue is a bit meandering.
chinmaygarde commentedon Nov 17, 2025
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?
gaaclarke commentedon Nov 17, 2025
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
toImageSyncwhere it fires off something on the raster thread and you get a handle to the task.Implements decodeImageFromPixelsSync (#179519)
github-actions commentedon Dec 26, 2025
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 -vand a minimal reproduction of the issue.Implements decodeImageFromPixelsSync (#179519)