Jason Simmons 27f6890c60 In a single frame codec, release the compressed image buffer after giving it to the decoder (flutter/engine#9825)
The codec will retain a reference to the decoded frame so it can be returned
in repeated calls to getNextFrame.

Also change the compressed image buffer to use an anonymous mapping on Android.
This is a workaround for high consumption of native heap pages by Android's
malloc when buffers are allocated on one thread and freed on another thread.

See https://github.com/flutter/flutter/issues/36079
2019-07-17 13:34:40 -07:00
..