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
Update ImageReaderSurfaceProducer.MAX_IMAGES to include the maximum number of retained dequeued images (flutter#174971)
MAX_IMAGES was set to 5 by
flutter/engine@7a58dac
in order to fix "client tried to acquire more than maxImages buffers"
warnings from ImageReader_JNI.
flutter@696251d
then converted lastDequeuedImage into a queue that retains up to
MAX_DEQUEUED_IMAGES in-flight images plus the latest dequeued image.
MAX_DEQUEUED_IMAGES was set to 2, but MAX_IMAGES was only incremented by
1. So the ImageReader_JNI warning may reappear in some cases.
This PR ensures that MAX_IMAGES provides enough capacity in the
ImageReader for the total number of images that may be in use.
0 commit comments