Fix ImageReader "unable to acquire a buffer item" warnings in FlutterImageView (flutter/engine#19319)

This commit is contained in:
Jason Simmons
2020-06-26 11:18:03 -07:00
committed by GitHub
parent a411ea9613
commit d720766b64

View File

@@ -611,10 +611,10 @@ public class PlatformViewsController implements PlatformViewsAccessibilityDelega
width,
height,
PixelFormat.RGBA_8888,
2,
3,
HardwareBuffer.USAGE_GPU_SAMPLED_IMAGE | HardwareBuffer.USAGE_GPU_COLOR_OUTPUT);
} else {
return ImageReader.newInstance(width, height, PixelFormat.RGBA_8888, 2);
return ImageReader.newInstance(width, height, PixelFormat.RGBA_8888, 3);
}
}