mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
MAX_IMAGES was set to 5 by7a58dac0b1in order to fix "client tried to acquire more than maxImages buffers" warnings from ImageReader_JNI.696251d25athen 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.
Flutter Engine
Setting up the Engine development environment
See here
gclient bootstrap
Flutter engine uses gclient to manage dependencies.
If you've already cloned the flutter repository: