mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
ImageReaderSurfaceProducer will request a frame when an image is enqueued. But there is no guarantee that each request will produce an additional frame. Multiple requests happening within one vsync interval could be merged into one frame. If no other frame is scheduled, then some images will remain in the queue and the image shown on screen will not be the latest image. With this change, ImageReaderSurfaceProducer will continue requesting frames after consuming an image if the queue is not empty. Fixes https://github.com/flutter/flutter/issues/156903 Fixes https://github.com/flutter/flutter/issues/155787