[Impeller] bump image count to 3 (flutter/engine#52650)

From testing on a Pixel 7 pro, we get constant destruction of buffers at 2, but not at 3, 4, or 5.

I suspect the problem is that when we stop pumping frames, we need to be able to hold all buffers that were in use. Since we support 2 frames in flight while one is encoding, that gives us 3 maximum buffers.
This commit is contained in:
Jonah Williams
2024-05-07 20:04:17 -07:00
committed by GitHub
parent 23603387ff
commit a9b2bf0627

View File

@@ -57,7 +57,7 @@ class AHBTexturePoolVK {
///
explicit AHBTexturePoolVK(std::weak_ptr<Context> context,
android::HardwareBufferDescriptor desc,
size_t max_entries = 2u);
size_t max_entries = 3u);
~AHBTexturePoolVK();