Commit d221519
authored
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.1 parent 7f111dd commit d221519
File tree
1 file changed
+1
-1
lines changed- engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/renderer
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | 416 | | |
418 | 417 | | |
419 | 418 | | |
| |||
422 | 421 | | |
423 | 422 | | |
424 | 423 | | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| |||
0 commit comments