Fix ImageReader "unable to acquire a buffer item" warnings in FlutterImageView (flutter/engine#19319)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user